Replies: 1 comment
-
|
This was pointed out by @evanwashere when iterating on |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Recently I have been benchmarking with
Deno.benchand having fun, although it seems that on some CI runners the default 1000 warmups is not sufficient. On the Ubuntu runner in Github Actions in particular there is a major difference in the measured time of whatever benchmark is run first, compared to other runners and my local machine.For example, I am benching a JS and WASM implementation of a string distance algorithm. The results are very consistent on my local setup and the MacOS/Windows runners: JS is faster on relatively short strings while WASM is faster on long ones:
On the Ubuntu runner though, there is a time anomaly in the first bench, showing a much higher average
ns/iter:I can actually shift the extra time in the CI to a different benchmark by having it run first:
Using more warmups solves this problem, somewhere around 3000-5000 giving results that are more in line with my expectation:
Don't know if anyone else has encountered something similar, but this made me wonder if the default warmups for
Deno.benchshould be higher, assuming more people will be using this in CI environments in the future.Beta Was this translation helpful? Give feedback.
All reactions