Speed comparison WP34S and other HPs Message #1 Posted by Harald on 17 Mar 2012, 8:28 p.m.
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:
001 LBL A
002 STO 00
003 1
004 STO00
005 R down
006 RCL 00
007 x=0?
008 Skip 002
009 +
010 back 007
011 R down
012 RTN
Used on WP34S, takes about 2 seconds to add all the numebrs up to 1000, 13seconds for 10000
Slightly different version without the skip and back branching of the 34S: 001 LBL A
002 STO 00
003 LBL 1
004 1
005 STO00
006 R down
007 RCL 00
008 x=0?
009 GTO 0
010 +
011 GTO 1
012 LBL 0
013 R down
014 RTN
HP15C (original) add up to 100: 1min 4sec
HP15C LE add up to 1000: 4sec
add up to 10000: 39sec
HP42S add up to 100: 10sec
add up to 1000: 1min 44sec
HP33s add up to 1000: 19sec
HP35s add up to 1000: 1min 3sec
HP32SII add up to 1000: 37sec
HP41CV add up to 100: 23sec
add up to 1000: 3min 50sec
HP29C add up to 100: 38sec
add up to 1000: 6min 25sec
Remove the Labels for the 12C and 25:
01 STO 00
02 1
03 STO00
04 R down
05 RCL 00
06 x=0?
07 GTO 10
08 +
09 GTO 02
10 R down
HP12c old 3xLR44 type: add up to 100: 42sec
HP12c new 1xCR2032 type: add up to 100: 40sec
HP25: 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 RTN
HP65: add up to 100: 21sec
add up to 1000: 3 min 43sec
Same 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 RTN
HP29C: add up to 100: 26sec
add up to 1000: 4min 26sec
WP34S: 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:
WP34S: 1
HP15C LE: 3
HP33S: 15
HP32SII: 28
HP35S: 48
HP42S: 78
HP41CV: 176
HP65: 248
HP29C: 295
HP25: 295
HP12C CR2032:307
HP12C LR44: 322
HP15C (old): 490
Comments? Corrections? Additions?
Cheers,
Harald
