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" : 6775,
"objectAllocCount" : 0
}
@@ -1,4 +1,4 @@
{
"instructions" : 734,
"instructions" : 6747,
"objectAllocCount" : 0
}
@@ -1,4 +1,4 @@
{
"instructions" : 689,
"instructions" : 6775,
"objectAllocCount" : 0
}
}
@@ -1,4 +1,4 @@
{
"instructions" : 1993,
"instructions" : 1251327,
"objectAllocCount" : 0
}
@@ -1,4 +1,4 @@
{
"instructions" : 1968,
"instructions" : 1251327,
"objectAllocCount" : 0
}
@@ -1,4 +1,4 @@
{
"instructions" : 815,
"instructions" : 6847,
"objectAllocCount" : 0
}
}
@@ -1,4 +1,4 @@
{
"instructions" : 750,
"instructions" : 6863,
"objectAllocCount" : 0
}
@@ -1,4 +1,4 @@
{
"instructions" : 775,
"instructions" : 6871,
"objectAllocCount" : 0
}
}
@@ -1,4 +1,4 @@
{
"instructions" : 2008,
"instructions" : 1189887,
"objectAllocCount" : 0
}
}
@@ -1,4 +1,4 @@
{
"instructions" : 2002,
"instructions" : 1189887,
"objectAllocCount" : 0
}
}