I was amazed by the speed of the WP34S, so I decided to write a litte program to compare its speed to my other calculators. The Program simply adds all integers from the entered number down to 1 and displays the result.
Because some calculators have no loop control and others lack the x=0? test, I wrote a few different versions. This isn't the most scientific aproach to this, but I thought I'd share it anyway. If you feel like it you could also add execution times for the calculators I couldn't test because I simply don't own an example.
Program 1:Used on WP34S, takes about 2 seconds to add all the numebrs up to 1000, 13seconds for 10000
001 LBL A
002 STO 00
003 1
004 STO-00
005 R down
006 RCL 00
007 x=0?
008 Skip 002
009 +
010 back 007
011 R down
012 RTN
Slightly different version without the skip and back branching of the 34S:
001 LBL A
002 STO 00
003 LBL 1
004 1
005 STO-00
006 R down
007 RCL 00
008 x=0?
009 GTO 0
010 +
011 GTO 1
012 LBL 0
013 R down
014 RTNHP-15C (original) add up to 100: 1min 4sec
HP-15C LE add up to 1000: 4sec
add up to 10000: 39sec
HP-42S add up to 100: 10sec
add up to 1000: 1min 44sec
HP-33s add up to 1000: 19sec
HP-35s add up to 1000: 1min 3sec
HP-32SII add up to 1000: 37sec
HP-41CV add up to 100: 23sec
add up to 1000: 3min 50sec
HP-29C add up to 100: 38sec
add up to 1000: 6min 25secRemove the Labels for the 12C and 25:
01 STO 00
02 1
03 STO-00
04 R down
05 RCL 00
06 x=0?
07 GTO 10
08 +
09 GTO 02
10 R downHP-12c old 3xLR44 type: add up to 100: 42sec
HP-12c new 1xCR2032 type: add up to 100: 40sec
HP-25: add up t0 100: 38sec
add up to 1000: 6min 25sec
Program 2
01 LBL
02 A
03 STO 8
04 0
05 LBL
06 0
07 RCL 8
08 +
09 g
10 DSZ
11 GTO
12 0
13 RTNHP-65: add up to 100: 21sec
add up to 1000: 3 min 43secSame program looks like this on the 29C:
01 LBL 1
02 STO 0
03 0
04 LBL 0
05 RCL 0
06 +
07 DSZ
08 GTO 0
09 RTNHP-29C: add up to 100: 26sec
add up to 1000: 4min 26sec
WP-34S: add up to 1000: 1sec
add up to 10000: 9sec
Conclusions:
Program 1 is (as expected) slower than program 2. From the calculators I ran both programs on, I worked out that it takes about 1.45 times as long as program 2.
Also (and also as expected) the execution time is roughly proportional to the input number. With that information in mind I came up with the following execution time index:
WP-34S: 1
HP-15C LE: 3
HP-33S: 15
HP-32SII: 28
HP-35S: 48
HP-42S: 78
HP-41CV: 176
HP-65: 248
HP-29C: 295
HP-25: 295
HP-12C CR2032:307
HP-12C LR44: 322
HP-15C (old): 490
Comments? Corrections? Additions?
Cheers,
Harald