Post Reply 
Summation based benchmark for calculators
09-10-2023, 03:53 PM (This post was last modified: 09-10-2023 03:55 PM by toml_12953.)
Post: #246
RE: Summation based benchmark for calculators
Here are my results for the FourOps benchmark:

Quote:Casio fx-9860GIII, OS version 3.70.0200, MicroPython

N options:
For 100 the computation takes too little time, Result: 100.0
1000 < 1 second Result: 1000.0
10,000 3.9 seconds Result: 10000.0
100,000 62 seconds Result: 100000.0
For 1,000,000 the computation takes too much time, I skipped it

Code:

Code:
from math import *
def fourops(n):
  sum = 0
    b = 0; c = 0
    for a in range(1, n+1):
      b = a
      c = a
      sum += sqrt(b*c)/a
  print(sum)

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Summation based benchmark for calculators - toml_12953 - 09-10-2023 03:53 PM



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