HP Forums

Full Version: Calculator Speed Benchmark (Add Loop)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I've taken Gene Wrights original work, put it in an XL sheet and added a few items:

There's a link to the file at the bottom of the page here:

https://sites.google.com/site/tchrapkiewicz2/calculating-devices

I'll try to maintain it and add some more benchmark columns to it.

TomC

39gII: Sept 04, 2012 firmware

LOOP1()
BEGIN
A:=0;
REPEAT
A:=A+1;
UNTIL 0;
END;

Run for 1 minute, stop, recall A. Averaged 5 runs.

~582,000

LOOP2()
BEGIN
FOR A FROM 0 TO 1E9 DO
END;
END;

Run for 1 minute, stop, recall A. Averaged 5 runs.

~1,640,000

For an exact comparison with same program as 39gs.

LOOP3()
BEGIN
1 STO A
REPEAT
A+1 STO A;
UNTIL A <=0;
END;

Run for 1 minute, stop, recall A. Averaged 5 runs.

~440,000

TW


Edited: 20 Jan 2013, 11:37 a.m. after one or more responses were posted

Tim:

Nice work, process and documentation; I'll update the sheet soon.

Regards,
TomC