Loop of + benchmark now in Articles section



#2

New Benchmark


Enjoy!
Gene


#3

It's interesting that the 35s is faster doing register arithmetic
(STO + Z) than simply +ing on the stack. Is that because dropping
the stack each time uses more steps? regards, Glenn


#4

Maybe it is due to the different types that might be on the stack. Is it a real? Is it a complex number? Each + might require that to be checked, whereas a STO+ operation might not. Guessing.

#5

No 49G?

HP 49G
Count: 12,351
Code: 1. << DO 1. + UNTIL 0. END >>


HP 49G
Count: 11,041
Code: << WHILE 1. REPEAT 1. + END >>

Gerson.


#6

I think everyone tries to forget that unit for a variety of reasons. . . :-D

TW

#7

What about in integers?

#1 << DO #1 + UNTIL 0. END >>

My 49 died a while back :-(
So did my 48sx :-(
And no batteries for my 28s and a broken battery door to boot :-(


- Pauli


#8

For my 50g, I get 19692 (average of 3 runs).


John

#9

Quote:
What about in integers?

#1 << DO #1 + UNTIL 0. END >>

#7164d (WS = 16)

#7130d (WS = 64)

Gerson.
#10

16C using increment

HP-16C
Count: 340
With 0 in I
Code: Lbl A, Isz, Gto A

#11

Hp 50G 12,000,000

User-rplfunction 'SUM(I=1, 12000000,1)' interpreted by custom library in HPGCC. The library evaluates functions, sums and numerical integrals from the Equation Writer in double precision for most real functions.

#12

Hello Gene,



congrats, a real great compilation of that simple benchmark across several generations of calculators!



However, for the great HP41C/CV/CX one benchmark is missing: MCODE

In the book "HP41 MCODE for Beginners" of Ken Emery, published 1985, a 20-step machine code for this 1+ addition algorithm is presented (pages 50-52) which I wont list here.

To make things short:

Count: ~130 000

This is about 100-fold of FOCAL or Synthetic programs!



The 41 was, is and remains amazing


Possibly Related Threads…
Thread Author Replies Views Last Post
  Prime 'CONTENT' section not retaining info text Geoff Quickfall 2 1,381 10-17-2013, 05:24 PM
Last Post: Geoff Quickfall
  WP34s integration trapped in infinite loop Bernd Grubert 25 7,097 10-17-2013, 08:50 AM
Last Post: Dieter
  HP Prime section on hpcalc.org to come? Han 0 876 09-27-2013, 11:02 PM
Last Post: Han
  Yet another benchmark port on the wiki: Savage Pier Aiello 35 9,860 09-26-2013, 03:22 AM
Last Post: Pier Aiello
  A brand new calculator benchmark: "middle square method seed test" Pier Aiello 25 7,098 09-13-2013, 01:58 PM
Last Post: Pier Aiello
  New community-maintained version of "Calculators benchmark: add loop" Pier Aiello 20 6,338 09-12-2013, 02:42 AM
Last Post: Pier Aiello
  Calculator Speed Benchmark (Add Loop) Thomas Chrapkiewicz 2 1,490 01-20-2013, 11:24 AM
Last Post: Thomas Chrapkiewicz
  Full (for now) Numeric CAS section up Eddie W. Shore 0 926 12-06-2012, 01:22 AM
Last Post: Eddie W. Shore
  Found on Youtube, comments section of bill platt 3 1,469 06-19-2012, 07:04 PM
Last Post: Diego Diaz.
  HP-IL: Using 82162A Printer and PIL-Box in Same Loop Les Wright 12 3,773 05-17-2012, 11:58 PM
Last Post: Les Wright

Forum Jump: