Post Reply 
Summation based benchmark for calculators
12-26-2017, 05:43 AM
Post: #40
RE: Summation based test for calculators
(12-26-2017 03:45 AM)BobVA Wrote:  HP-41CL / x50 speed: 100 iterations (139.2926) 15s

I get something different. 41CL, v5 board, TURBO 50. Using the Sigma+ function to accumulate intermediate values because it has the advantage of returning the index X each invocation. Twelve instructions from the loop header label to the bottom GTO with no instructions other than the 41C/CV/CX defaults:

10 13.711835 0.55 seconds
100 139.297187 5.13 seconds
1,000 1395.346260 48.31 seconds
10,000 13955.84859 7 minutes 48.24 seconds

Oddly, this quick hack turned out to be faster than dedicated register counter and accumulator versions. I guess that's the speed advantage of MCODE over FOCAL programs, eh?

Interesting problem to play with!
~Mark

Remember kids, "In a democracy, you get the government you deserve."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Summation based test for calculators - mfleming - 12-26-2017 05:43 AM



User(s) browsing this thread: 37 Guest(s)