4 ms·
Does it support functions that take seconds to execute? I bloody hate Criterion because it’s worthless for anything that takes even milliseconds.
by forrestthewoods 3y ago
Does it support functions that take seconds to execute? I bloody hate Criterion because it’s worthless for anything that takes even milliseconds.
- vlovich123 3y agoAre you saying in terms of how long the benchmark takes? Have you tried `--quick`? The duration of the test doesn't matter so much for the time it takes Criterion to benchmark - what Criterion is trying to do is run the function enough times that it thinks it has a statistically defensible estimate of how expensive your code is.