New community-maintained version of "Calculators benchmark: add loop"


So, i just copied (even if is not complete) the original calculator benchmark of Gene Wright that is no more updated (1) on a wiki4hp page.

Do you know other results that weren't added to the original article? If yes, could you link me the discussion? (or could you add it directly on the wiki? (2) )

(1) The other benchmark that i known, the N-Queens, is regularly updated.

(2) Here is, for me, the power of a wiki: concentrate the efforts of multiple users on a single page and it is really useful for FAQs; articles that needs continuous updates; organization in a more usable way of preexisting contents on other sites (ex: an organized index of links); and so on without the limit of a single editor (that can become inactive).


fresh test with hp 15c le (ordered by speed) disclaimer: stopped by hand, maybe 2 s +/-

LBL  E + GTO  E		48823
LBL 09 + GTO 09 48763
LBL A + GTO A 48721
LBL 01 + GTO 01 48509
LBL .9 + GTO .9 44448
LBL .1 + GTO .1 44083


I'll add it ASAP. Thanks :)

PS: My hp50g is way slower (if i don't use HPgcc but standard userRPL) than your arm powered 15c. That's unfair!!! :P

Edited: 10 Sept 2013, 9:32 a.m.




With Stack depth 4

LBL'XYZ' + GTO'XYZ'		90891
LBL A + GTO A 90675
LBL 00 + GTO 00 90369

With Stack depth 8

LBL 00   + GTO 00               78209


The earlier version 2 firmware will be faster than version 3.

There are lots of other possibilities for improvement BACK and INC for example. Also, integer mode might be a little faster.

- Pauli


Could you please try the following program:

000 +
001 x=0
Just fill the stack with 1s and hit the R/S key. For this to work all the programs have to be cleared beforehand. So I'd understand if you don't want to do that.

Another variant is to start with 0 in register I and use this program:

000 ISG I

The results are 2038 respectively 1669 using a DM-15CC.

Best regards


PS: A false condition on the last line jumps over to the first line.

Edited: 10 Sept 2013, 1:20 p.m.


#5 and #6 added!

PS: just register on the wiki and contribute directly!

Edited: 10 Sept 2013, 1:49 p.m.


Kind of hard since the source is locked by administrator. :-?

Prime: v2013.8.13

export LOOP()
for A from 1 to 1E9 do

Recall A after ON to stop running on 1 min. Average of several runs.



Edited: 10 Sept 2013, 4:14 p.m.


Reminds me of The Evolution of a Programmer.


Thanks! (Added)

About editor status, i get it in minutes but i agree, a wiki should be quite open, indeed i create this wiki talk: here

I hope that the admin will ad some new moderators ASAP.


This version (same to the PRIME version) is faster on the HP39GII than a A+1->A version published

-> 1062108 loop in 60 sec

The prime is 6.25 x faster

Edited: 11 Sept 2013, 3:20 p.m.


Thanks! Indeed for loops are faster in general :)

Edited: 11 Sept 2013, 3:37 p.m.


By the way, the A:=0 line can be deleted :

// A:=0;

But this change nothing


+ x=0?		59006 or 59182
ISG 00 41062 or 41048
ISG I 40746
ISG .9 40922

ps: thanks, i did't know.


added :)


Don't know whether that counts but it was fun to do.

Odhner Count: 251.

I can hardly believe that I was faster than a HP-67.




Sure it counts!

And, this time, i think that emulators can have their list. So if you have an emulator, use it!


I have added new, and updated, results found on MoHPC :)

- Some TI performs better with a for loop

- 39gII results

- a 30b with crystals.

Edited: 11 Sept 2013, 11:36 a.m.


I was playing around with this on the WP-34S and could see that how one codes the loop makes a big difference.

If you run two tests, one with one addition inside the loop, and the second with two additions inside the same loop, then it is possible to deduce the cost of the loop and figure out just the cost of the addition operation.

I ran some experiments on the WP-34S to see how consistent this was. I ran a loop with 1,2,3,4,5, and 6 additions inside it and the cost of the loop was consistent.

When one takes this approach, it turns out that the setup code and the loop can be as complex as need be in order to set up the benchmark of the individual operation. Thus, for multiplication or division, one can make sure the stack is set up with valid numbers. The multiple tests will hide the cost of the setup/loop.

I ran six tests to benchmark addition, and multiplication on the WP-34S. You can see that the average result is that the calculator can do 2428 additions per second and 2422 multiplications per second.

Here is the spreadsheet with my numbers and calculations:

Spreadsheet with results (LibreOffice/OpenOffice)

I would find it interesting to use this kind of approach to compare the most common operations on all the calculators to get an idea of their relative speed. I have played with different modes on the WP-34S and can see the difference they make.

I will continue to benchmark the WP-34S instructions in different modes and will post the results in the next few days.


Nice idea! (and it is much more consistent to compare calculators on four operations)

Could you setup a wiki page (or an article) about this to store the results? Thanks :)

Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime works from the traditionally TI community... debrouxl 1 1,641 12-06-2013, 09:00 PM
Last Post: Erwin Ried
  How to add image to HP Forum Posting Harold A Climer 2 1,522 11-20-2013, 02:28 PM
Last Post: Han
  WP34s integration trapped in infinite loop Bernd Grubert 25 6,972 10-17-2013, 08:50 AM
Last Post: Dieter
  Yet another benchmark port on the wiki: Savage Pier Aiello 35 9,555 09-26-2013, 03:22 AM
Last Post: Pier Aiello
  A brand new calculator benchmark: "middle square method seed test" Pier Aiello 25 6,903 09-13-2013, 01:58 PM
Last Post: Pier Aiello
  "Best of" from HP community's discussion places Pier Aiello 4 1,843 09-12-2013, 03:05 AM
Last Post: Pier Aiello
  A cheaper way to add to your collection Keith Midson 3 2,029 03-08-2013, 05:50 AM
Last Post: Keith Midson
  Calculator Speed Benchmark (Add Loop) Thomas Chrapkiewicz 2 1,447 01-20-2013, 11:24 AM
Last Post: Thomas Chrapkiewicz
  HP-IL: Using 82162A Printer and PIL-Box in Same Loop Les Wright 12 3,695 05-17-2012, 11:58 PM
Last Post: Les Wright
  WP-34s: Speed benchmark W. Bruce Maguire II 13 3,287 04-29-2012, 12:16 AM
Last Post: Gilles Carpentier

Forum Jump: