←back to thread

238 points hundredwatt | 1 comments | | HN request time: 0.203s | source
Show context
mmastrac ◴[] No.42179600[source]
Hyperfine is a great tool but when I was using it at Deno to benchmark startup time there was a lot of weirdness around the operating system apparently caching inodes of executables.

If you are looking at shaving sub 20ms numbers, be aware you may need to pull tricks on macos especially to get real numbers.

replies(3): >>42180391 #>>42182037 #>>42182986 #
1. maccard ◴[] No.42182986[source]
Not being able to rely on numbers to 20ms is pretty poor. That’s longer than a frame in a video game.

Windows has microsecond precision counters (see QueryPerformanceCounter and friends)