[HP35s] Benchmark of some operations - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: [HP35s] Benchmark of some operations (/thread-12414.html) |
[HP35s] Benchmark of some operations - fred_76 - 02-13-2019 10:20 AM Hello, Here is a benchmark of some of the HP35s operations/functions. It shows the execution time in milliseconds. Code:
You will notice that the more digits a number has, the longer it takes for execution. Take these figures as indicative only ! Fred RE: [HP35s] Benchmark of some operations - Leviset - 02-13-2019 10:57 AM Out of interest - How are you measuring these? RE: [HP35s] Benchmark of some operations - fred_76 - 02-13-2019 12:02 PM (02-13-2019 10:57 AM)Leviset Wrote: Out of interest - How are you measuring these? I programmed a loop, and first manually measure the time taken by the empty loop (t0). I do this manually as the HP35s does'nt have internal timer. The code is like that, nnn being the number of iterations (usually 1000) : Code:
Then I just have to insert the instruction(s) to test in line 4, restart the test program and measure the time t1. The time per (set of) instruction(s) is then 1000*(t1-t0)/nnn in ms. I repeat this several times (especialy when t1-t0 < 10s) and take the shortest time measured. It is quite precise, I calculated the time for the calculation of the prime number 99 999 999 977 using the algorithm shown here and found a theoretical value of 14'40", to be compared to the real time of 14'37". Fred |