From 64ec8b0432c73ca03a2eeda681078589c31b2044 Mon Sep 17 00:00:00 2001 From: Daniil Porokhnin Date: Thu, 20 Nov 2025 14:39:53 +0300 Subject: [PATCH 1/3] chore: skip candidates for deletion --- cache/cache_test.go | 2 ++ frac/active_ids_test.go | 4 ++++ node/bench_test.go | 4 ++++ pattern/pattern_test.go | 4 ++++ tests/setup/doc_test.go | 8 ++++++++ 5 files changed, 22 insertions(+) diff --git a/cache/cache_test.go b/cache/cache_test.go index 8ef40be9..52979647 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -129,6 +129,8 @@ func TestStress(t *testing.T) { } func BenchmarkBucketClean(b *testing.B) { + b.SkipNow() + b.StopTimer() cleaner := NewCleaner(0, nil) diff --git a/frac/active_ids_test.go b/frac/active_ids_test.go index ae2f6111..a07a4cfe 100644 --- a/frac/active_ids_test.go +++ b/frac/active_ids_test.go @@ -33,6 +33,8 @@ func TestSeqListAppend(t *testing.T) { } func BenchmarkMutexListAppend(b *testing.B) { + b.SkipNow() + gr := 2 mu := sync.Mutex{} b.SetBytes(int64(gr * 8000000)) @@ -57,6 +59,8 @@ func BenchmarkMutexListAppend(b *testing.B) { } func BenchmarkSeqListAppend(b *testing.B) { + b.SkipNow() + gr := 2 b.SetBytes(int64(gr * 8000000)) for n := 0; n < b.N; n++ { diff --git a/node/bench_test.go b/node/bench_test.go index d16e50e6..a5570805 100644 --- a/node/bench_test.go +++ b/node/bench_test.go @@ -25,6 +25,8 @@ func Generate(n int) ([]uint32, uint32) { // bench for base point // you can't go faster func BenchmarkCopy(b *testing.B) { + b.SkipNow() + res := make([]uint32, b.N) n := newNodeStaticSize(b.N) b.ResetTimer() @@ -33,6 +35,8 @@ func BenchmarkCopy(b *testing.B) { // base point func BenchmarkIterate(b *testing.B) { + b.SkipNow() + res := make([]uint32, b.N) n := newNodeStaticSize(b.N) b.ResetTimer() diff --git a/pattern/pattern_test.go b/pattern/pattern_test.go index 2c9a5702..2597c7dc 100644 --- a/pattern/pattern_test.go +++ b/pattern/pattern_test.go @@ -515,6 +515,8 @@ func TestFindSequence(t *testing.T) { } func BenchmarkFindSequence_Deterministic(b *testing.B) { + b.SkipNow() + type testCase struct { haystack []byte needles [][]byte @@ -556,6 +558,8 @@ func BenchmarkFindSequence_Deterministic(b *testing.B) { } func BenchmarkFindSequence_Random(b *testing.B) { + b.SkipNow() + sizes := []struct { name string haystackSize int diff --git a/tests/setup/doc_test.go b/tests/setup/doc_test.go index bf463de1..8c24e434 100644 --- a/tests/setup/doc_test.go +++ b/tests/setup/doc_test.go @@ -67,6 +67,8 @@ func BenchmarkRandomJSON(b *testing.B) { } func BenchmarkRandomDoc(b *testing.B) { + b.SkipNow() + RunParallel(4, func() { sum := 0 for i := 0; i < b.N; i++ { @@ -79,6 +81,8 @@ func BenchmarkRandomDoc(b *testing.B) { } func BenchmarkGenerateDocs(b *testing.B) { + b.SkipNow() + res := GenerateDocs(b.N, func(_ int, doc *ExampleDoc) { *doc = *RandomDoc(1) }) @@ -86,11 +90,15 @@ func BenchmarkGenerateDocs(b *testing.B) { } func BenchmarkGenerateDocsJSON(b *testing.B) { + b.SkipNow() + res := GenerateDocsJSON(b.N, false) _ = res } func BenchmarkGenerateDocsJSONFields(b *testing.B) { + b.SkipNow() + res := GenerateDocsJSON(b.N, true) _ = res } From 1be4688bd71b515f162f78e2a6c9df8335e1d279 Mon Sep 17 00:00:00 2001 From: Daniil Porokhnin Date: Thu, 20 Nov 2025 14:40:29 +0300 Subject: [PATCH 2/3] ci: increase `-count` to 5 on `pull_request` --- .github/workflows/continuous-benchmarks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-benchmarks.yml b/.github/workflows/continuous-benchmarks.yml index dbd2d861..e5187efe 100644 --- a/.github/workflows/continuous-benchmarks.yml +++ b/.github/workflows/continuous-benchmarks.yml @@ -28,7 +28,7 @@ jobs: - name: Run Golang benchmarks shell: bash run: | - COUNT=$([[ "${{ github.event_name }}" == "pull_request" ]] && echo 1 || echo 5) + COUNT=$([[ "${{ github.event_name }}" == "pull_request" ]] && echo 5 || echo 5) LOG_LEVEL=FATAL GOMAXPROCS=4 go test -run='$^' -count=$COUNT -bench=. -benchmem ./... | tee ${{ runner.temp }}/gotool.txt # Add GitHub job summary for pull requests. From 4dc3d4ebacdb6dcc488b1f6f7623a28697b5bb8e Mon Sep 17 00:00:00 2001 From: Daniil Porokhnin Date: Thu, 20 Nov 2025 16:07:12 +0300 Subject: [PATCH 3/3] chore: skip one more benchmark --- tests/setup/doc_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/setup/doc_test.go b/tests/setup/doc_test.go index 8c24e434..4107921a 100644 --- a/tests/setup/doc_test.go +++ b/tests/setup/doc_test.go @@ -55,6 +55,8 @@ func RunParallel(n int, f func()) { } func BenchmarkRandomJSON(b *testing.B) { + b.SkipNow() + RunParallel(4, func() { sum := 0 for i := 0; i < b.N; i++ {