Re: Faster lower() command
To clarify for everyone, this is what I used for benchmarking.
constant ITERATIONS = 1000000
integer p
atom t0, loop_overhead
t0 = time()
for i = 1 to ITERATIONS do
-- time an empty loop
end for
loop_overhead = time() - t0
t0 = time()
for i = 1 to ITERATIONS do
p = power(2, 20)
end for
? (time() - t0 - loop_overhead)/ITERATIONS
-- calculates time (in seconds) for one call to power
It's the code directly from the documentation under the time() command. I
swapped out 'p = power(2, 20)' for my own command.
Quoting the mail I sent to Rob Craig...
Converting the sequence
("A REALLY LONG SEQUENCE WITH JUNK INSIDE.")
Old -> (2.26 to 2.28 e-06)
New -> (1.34 to 1.36 e-06)
The benchmarks were done on Windows XP Home.
-- Jesse Adkins
|
Not Categorized, Please Help
|
|