Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed Oct 20, 2023
1 parent 0097004 commit e9a438a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import (

func BenchmarkFib10(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = Fib(1)
_ = Fib(100)
}
}

func BenchmarkFib20(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = Fib(1)
_ = Fib(100)
}
}

func BenchmarkFib25(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = Fib(1)
_ = Fib(100)
}
}

2 comments on commit e9a438a

@github-actions
Copy link

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: e9a438a Previous: 0097004 Ratio
BenchmarkFib10 - ns/op 1061531 ns/op 2.009 ns/op 528387.76
BenchmarkFib10 - B/op 0 B/op 0 B/op NaN
BenchmarkFib10 - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkFib20 - ns/op 1060720 ns/op 2.008 ns/op 528247.01
BenchmarkFib20 - B/op 0 B/op 0 B/op NaN
BenchmarkFib20 - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkFib25 - ns/op 1060911 ns/op 2.008 ns/op 528342.13
BenchmarkFib25 - B/op 0 B/op 0 B/op NaN
BenchmarkFib25 - allocs/op 0 allocs/op 0 allocs/op NaN

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

@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: e9a438a Previous: 0097004 Ratio
BenchmarkFib10 - ns/op 1061531 ns/op 2.009 ns/op 528387.76
BenchmarkFib20 - ns/op 1060720 ns/op 2.008 ns/op 528247.01
BenchmarkFib25 - ns/op 1060911 ns/op 2.008 ns/op 528342.13

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

Please sign in to comment.