Re: PowerBasic rocks!
- From: Jan Panteltje <pNaonStpealmtje@xxxxxxxxx>
- Date: Fri, 15 May 2009 17:44:26 GMT
On a sunny day (Fri, 15 May 2009 12:29:21 -0500) it happened James Waldby
<no@xxxxx> wrote in <Ybedne7peojsO5DXnZ2dnUVZ_vOdnZ2d@xxxxxxxxxxx>:
On Fri, 15 May 2009 05:23:53 -0700, panteltje wrote:
Even with your values I still have problems with this :[snip program]
When I run that on the eeePC with 512MB RAM, I get these times:
eeepc-unknown:/root> ./test2
memory needed=384 MB
mem=0xa8a54008
b=0xa1041008
Time used is 13920337 us (13.9203 s). Ready
On my system*, an example output of ./time-snipped-prog is:
memory needed=384 MB
mem=0x2aaaaaae8010
b=0x2aaab9f0d010
Time used is 2891413 us (2.8914 s).
Ready
-------------------------------------------
*Some extracts from free and per-processor /proc/cpuinfo on my system:
total used free
Mem: 3936312 3537024 399288
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
cpu MHz : 1000.000
bogomips : 2042.00
-----------------------------
The program shown below is shorter and faster than the snipped
program (shorter because of formatting, no error checks, and no
bother with incrementing pointers, which can get in the way of
compiler optimization). Eg, in repeated runs, 1.7760 s was the
least time from the snipped program, while <1.6 seconds was typical
for program below, whose output is like following:
Causes reboot of my eeePC :-(
.
- Follow-Ups:
- Re: PowerBasic rocks!
- From: James Waldby
- Re: PowerBasic rocks!
- References:
- PowerBasic rocks!
- From: John Larkin
- Re: PowerBasic rocks!
- From: panteltje
- Re: PowerBasic rocks!
- From: James Waldby
- PowerBasic rocks!
- Prev by Date: Re: OT: Imprecise assessment of the probability of tipping points in the climate system
- Next by Date: Re: Larkin, Power BASIC cannot be THAT good:
- Previous by thread: Re: PowerBasic rocks!
- Next by thread: Re: PowerBasic rocks!
- Index(es):
Relevant Pages
|