Post Reply 
HP Prime: a student's view
08-31-2021, 02:02 PM
Post: #10
RE: HP Prime: a student's view
(08-31-2021 01:30 AM)Liam Hays Wrote:  Importantly, my code uses just for loops and range(), so there isn't any operation to decrement a counter nor check its value. Could this be making an incorrect value?

"for l in range(10)" really loop from 0 to 9

Instead, we should loop from 10 down to 1
Code:
    xs = range(10,0,-1)
    for i in range(100000):
        for x in xs:
            ...

(08-31-2021 11:10 AM)toml_12953 Wrote:  Many people don't get the purpose of benchmarks and change the algorithm or add special features of their machine then boast of faster runtimes. They're not really comparing their computer to the others in the published benchmark that way.

see How do cars fare in crash tests they're not specifically optimized for?
Quote:Any time you have a benchmark that gets taken seriously, some people will start gaming the benchmark.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP Prime: a student's view - Liam Hays - 08-30-2021, 01:11 AM
RE: HP Prime: a student's view - Liam Hays - 08-31-2021, 01:30 AM
RE: HP Prime: a student's view - Albert Chan - 08-31-2021 02:02 PM
RE: HP Prime: a student's view - parisse - 08-31-2021, 07:30 PM
RE: HP Prime: a student's view - Liam Hays - 08-31-2021, 11:20 PM
RE: HP Prime: a student's view - jte - 09-01-2021, 10:43 PM
RE: HP Prime: a student's view - Liam Hays - 09-03-2021, 01:31 AM
RE: HP Prime: a student's view - jte - 09-05-2021, 03:44 PM
RE: HP Prime: a student's view - jte - 09-05-2021, 06:16 AM
RE: HP Prime: a student's view - pinkman - 09-03-2021, 09:30 PM
RE: HP Prime: a student's view - Liam Hays - 09-04-2021, 01:30 AM
RE: HP Prime: a student's view - Liam Hays - 09-04-2021, 04:49 PM
RE: HP Prime: a student's view - ijabbott - 09-04-2021, 08:44 AM



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