Post Reply 
Summation based benchmark for calculators
12-26-2017, 03:26 PM
Post: #47
RE: Summation based test for calculators
(12-26-2017 02:48 PM)pier4r Wrote:  10% means? (in seconds)

Timings in seconds for 100 / 1000 / 10000 iterations on the HP 50g:

Using the 'Σ' function: 2.7 / 25.6 / 242.8
Using a SysRPL program: 2.81 / 26.57 / 260.41
Using a UserRPL program: 3.38 / 33.27 / 309.74

(12-26-2017 02:48 PM)pier4r Wrote:  Anyway I think the quoted part of the code is where most of the time is spent. And those are firmware based functions, so hard to speed up. (unless one moves on ARM optimized functions)

Very likely. In fact I rewrote the SysRPL program to remove the repeated calculation of 1/3 and have updated the code in my previous post to reflect this. As a result, the gap between UserRPL and SysRPL has been widened to 15-20% depending on which figures you look at.

For reference, this is the UserRPL program I was using:

Code:
\<< ABS IP \-> n
  \<< TICKS 0. 1. n
     FOR n n ATAN SIN EXP 3. INV ^ +
     NEXT TICKS ROT - B\->R 8192. /
  \>>
\>>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Summation based test for calculators - grsbanks - 12-26-2017 03:26 PM



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