Increase inner iterations from 1000 to 2000 to reduce jitter

This commit is contained in:
J. Nick Koston
2026-03-16 23:40:18 -10:00
parent dd52c91290
commit 8e4091baa3
5 changed files with 5 additions and 5 deletions
@@ -8,7 +8,7 @@ namespace esphome::api::benchmarks {
// Inner iteration count to amortize CodSpeed instrumentation overhead.
// Without this, the ~60ns per-iteration valgrind start/stop cost dominates
// sub-microsecond benchmarks.
static constexpr int kInnerIterations = 1000;
static constexpr int kInnerIterations = 2000;
// --- HelloRequest decode (string + varint fields) ---
@@ -8,7 +8,7 @@ namespace esphome::api::benchmarks {
// Inner iteration count to amortize CodSpeed instrumentation overhead.
// Without this, the ~60ns per-iteration valgrind start/stop cost dominates
// sub-microsecond benchmarks.
static constexpr int kInnerIterations = 1000;
static constexpr int kInnerIterations = 2000;
// --- SensorStateResponse (highest frequency message) ---
@@ -8,7 +8,7 @@ namespace esphome::api::benchmarks {
// Inner iteration count to amortize CodSpeed instrumentation overhead.
// Without this, the ~60ns per-iteration valgrind start/stop cost dominates
// sub-microsecond benchmarks.
static constexpr int kInnerIterations = 1000;
static constexpr int kInnerIterations = 2000;
// --- ProtoVarInt::parse() benchmarks ---
+1 -1
View File
@@ -7,7 +7,7 @@ namespace esphome::benchmarks {
// Inner iteration count to amortize CodSpeed instrumentation overhead.
// Without this, the ~60ns per-iteration valgrind start/stop cost dominates
// sub-microsecond benchmarks.
static constexpr int kInnerIterations = 1000;
static constexpr int kInnerIterations = 2000;
// --- random_float() ---
// Ported from ol.yaml:148 "Random Float Benchmark"
+1 -1
View File
@@ -8,7 +8,7 @@ namespace esphome::benchmarks {
// Inner iteration count to amortize CodSpeed instrumentation overhead.
// Without this, the ~60ns per-iteration valgrind start/stop cost dominates
// sub-microsecond benchmarks.
static constexpr int kInnerIterations = 1000;
static constexpr int kInnerIterations = 2000;
// --- Scheduler fast path: no work to do ---