![]() |
Speed comparison WP34S and other HPs - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Speed comparison WP34S and other HPs (/thread-214671.html) |
Speed comparison WP34S and other HPs - Harald - 03-17-2012 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. Program 1: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 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.
Cheers, Re: Speed comparison WP34S and other HPs - Paul Dale - 03-17-2012 How about:
001: LBL A
mode type 1,000 10,000 This was with fresh batteries (my first change in my test unit). With old batteries, the timings were more like the SLOW regardless of mode.
001: LBL A I'd expect the timing to be the same however.
Re: Speed comparison WP34S and other HPs - Paul Dale - 03-17-2012 Then there is the clever/cheats' method:
001: LBL A or in integer mode, we can save a step:
001: LBL A The run time for either is essentially zero.
Re: Speed comparison WP34S and other HPs - Paul Dale - 03-17-2012 I'll also note that, even though it is faster at basic arithmetic, the WP 34S is slower than the 15C LE for some of the transcendental functions.
Re: Speed comparison WP34S and other HPs - Harald - 03-17-2012 Uhm, yes. That wasn't quite the point of the exercise ;)
Re: Speed comparison WP34S and other HPs - Harald - 03-17-2012 Is that because they put more emphasis on fast execution rather then accuracy when they designed the algorithms for the 15C?
I should probably use some more complex functions in the test program and then compare the results again. Edited: 17 Mar 2012, 9:17 p.m.
Re: Speed comparison WP34S and other HPs - Paul Dale - 03-17-2012 No, the 15C's algorithms are first rate accuracy wise. The 34S is carrying 39 digits internally as opposed to 10/13 for the 15C. I also haven't attempted to optimise much of the 34S code base for speed -- accuracy and space have been our primary concerns.
Re: Speed comparison WP34S and other HPs - bill platt - 03-17-2012 "accuracy and space have been our primary concerns."
As it should be :-)
Re: Speed comparison WP34S and other HPs - Dominic Richens - 03-18-2012 How about adding some of the modern RPL calculators for comparison? I have an HP-48SX at work I can test on Monday. Also interesting would be programs that use transcendental functions, one that compares the speed of numeric integration and the solver, for calculators that have those.
I remember using the solver or integration function on my (now lost) HP-15C meant staring at a screen flashing "Running" for a while. On the WP34s the answer is nearly instant!
Re: Speed comparison WP34S and other HPs - Harald - 03-18-2012 I've never really warmed up to RPL programing. I could test on the 48S, SX and GX, the 28C and S and the 49gII. Maybe I'll write the program for those too. I agree, timing for advanced functions would be intresting. Any suggestions on what to calculate? Integration and solver would very much limit the number of calculators it can run on though.
Harald
Re: Speed comparison WP34S and other HPs - Craig Ruff - 03-18-2012 41CL (TURBO50) Edited: 18 Mar 2012, 11:02 a.m.
Re: Speed comparison WP34S and other HPs - Donald Williams - 03-18-2012 You might be interested in this Edited: 18 Mar 2012, 11:52 a.m.
Re: Speed comparison WP34S and other HPs - pascal_meheut - 03-18-2012 Seem strange to compare normal programs with compiled C code that do cannot be stopped...
Re: Speed comparison WP34S and other HPs - Gilles Carpentier - 03-18-2012 You can use TEVAL and the ad hoc function (Sigma) with HP50G :
TEVAL Replace ∑ with Sigma greek character :
<< '∑(x=1,1000,x)' EVAL >>
Edited: 18 Mar 2012, 4:54 p.m. after one or more responses were posted
Re: Speed comparison WP34S and other HPs - Harald - 03-18-2012 I suspect it doesn't simply add the numbers, but finds an algebraic solution and then evaluates that.
Re: Speed comparison WP34S and other HPs - Gilles Carpentier - 03-18-2012 Or some 'embedded ARM' piece of software ? With the same rom version,emu48 is much much slower.... And Emu48 knows nothing about ARM on the contrary of HP50G. And i remember that the ROM includes some acceleration process for native ARM device
Edited: 18 Mar 2012, 4:39 p.m.
Re: Speed comparison WP34S and other HPs - Donald Williams - 03-18-2012 By adjusting the conditions of the while loop it will stop in exactly 60 seconds. All these first few benchmarks only demonstrate the raw speed of the underlying hardware. Nonetheless there is a lesson in all that. When you compare the same device speed in their native programming environment they are not quite so impressive. So you can start off with the best and end up with the mediocre. Right.
In fact if this comparison means anything (questionable?), the calculator "speed freaks" should be investing their money on a vintage 1984 HP-71B. A fine machine I might add.
Re: Speed comparison WP34S and other HPs - Tom Grydeland - 03-19-2012 On the HP-42S (with no DSZ) we can use DSE instead, and accept a +0 or two for the sake of brevity:
00 { 18-Byte Prgm }
Computes up to 1000 in 63s on my 42S.
Re: Speed comparison WP34S and other HPs - Tom Grydeland - 03-19-2012 And for the 15C(LE) with no DSE on stack registers, we need one numbered register for the equivalent program:
000 LBL B ; 42,21,12On my 15C, this sums to 100 in about 52s, while my 15CLE sums up to 10000 in just over 31s. |