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 49fb48e commit a54e6ab
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 a54e6ab

@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: a54e6ab Previous: 49fb48e Ratio
BenchmarkFib10 - ns/op 1068691 ns/op 2.415 ns/op 442522.15
BenchmarkFib10 - B/op 0 B/op 0 B/op NaN
BenchmarkFib10 - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkFib20 - ns/op 1069470 ns/op 2.414 ns/op 443028.17
BenchmarkFib20 - B/op 0 B/op 0 B/op NaN
BenchmarkFib20 - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkFib25 - ns/op 1068781 ns/op 2.413 ns/op 442926.23
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: a54e6ab Previous: 49fb48e Ratio
BenchmarkFib10 - ns/op 1068691 ns/op 2.415 ns/op 442522.15
BenchmarkFib20 - ns/op 1069470 ns/op 2.414 ns/op 443028.17
BenchmarkFib25 - ns/op 1068781 ns/op 2.413 ns/op 442926.23

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

Please sign in to comment.