Repository navigation
The program measures too much time. #805
scumware
started this conversation in
Show and tell
Replies: 2 comments 2 replies
|
What happens if you run |
1 reply
|
I was able to run the benchmark after all. To do this, you need to put the program you are testing in the directory where hyperfine is located. It looks like the system time and user time are now normal. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I ran a series of tests, which led me to suspect that the program was measuring too much time. To confirm my assumptions, I wrote a simplest x64 program in MASM:
and benchmark it with https://github.com/mcmilk/wtime x64 version.
Here is result:
As you can see, the program execution time is about 1 ms: this time was determined by the wtime program based on the difference between createTime and exitTime. Also here you see here that the UserTime is less than 1ms.
Unfortunately, the program cannot show fractions of a millisecond due to the peculiarities of integer division in the C language.
I got incorrect results using the second version of the program. v1.19.0
For benchmark I had used next command line:
hyperfine.exe -r10000 --export-json runs.json ExitProcess.exehere is results: runs.zip
Part of results here:
As you can see, at least the usertime is calculated incorrectly, it cannot be equal about 2 ms.
Here is ExitProcess program:
ExitProcess.zip
All reactions