Make benchmarks more reliable by using the scale factor (#539)

### Motivation:

Currently the benchmark machinery overhead is causing a lot of noise in
benchmarks of very efficient/fast code.

### Modifications:

Use the scaling factor to amortize the fixed overhead and let the actual
tested code account for most of the measured metrics.

### Result:

More reliable benchmarks that don't fail 20% of the time.
This commit is contained in:
Honza Dvorsky authored and GitHub committed 2026-11-19 09:59:58 +00:00
1 parent c7413d967b
commit d05c8efdae
47 files changed
+92 -87

No files matched your search

@@ -1,4 +1,4 @@
{
"instructions" : 734,
"instructions" : 6771,
"objectAllocCount" : 0
}
@@ -1,4 +1,4 @@
{
"instructions" : 734,
"instructions" : 6767,
"objectAllocCount" : 0
}
@@ -1,4 +1,4 @@
{
"instructions" : 734,
"instructions" : 6775,
"objectAllocCount" : 0
}
@@ -1,4 +1,4 @@
{
"instructions" : 710,
"instructions" : 6771,
"objectAllocCount" : 0
}
@@ -1,4 +1,4 @@
{
"instructions" : 810,
"instructions" : 6875,
"objectAllocCount" : 0
}
}
@@ -1,4 +1,4 @@
{
"instructions" : 803,
"instructions" : 6879,
"objectAllocCount" : 0
}
}
@@ -1,4 +1,4 @@
{
"instructions" : 803,
"instructions" : 6895,
"objectAllocCount" : 0
}
}
@@ -1,4 +1,4 @@
{
"instructions" : 803,
"instructions" : 6867,
"objectAllocCount" : 0
}
}