Skip to content

Commit

Permalink
Violating expected benchmark ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Jan 3, 2024
1 parent 81d38b2 commit d73351e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
package main

import "testing"
import (
"testing"
"time"
)

// BenchmarkAdd is a dummy benchmark test to monitor for regressions in overal benchmark CI behavior.
func BenchmarkAdd(b *testing.B) {
for i := 0; i < b.N; i++ {
Add(1, 2)
time.Sleep(1 * time.Nanosecond)
}

}

1 comment on commit d73351e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: d73351e Previous: f1edaa8 Ratio
BenchmarkAdd 193.5 ns/op 0.3116 ns/op 620.99

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.