Skip to content

Commit

Permalink
final test
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed Oct 19, 2023
1 parent 24c37f5 commit 4ae4294
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 4ae4294

@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: 4ae4294 Previous: 24c37f5 Ratio
BenchmarkFib10 - ns/op 1062499 ns/op 3.135 ns/op 338915.15
BenchmarkFib10 - B/op 0 B/op 0 B/op NaN
BenchmarkFib10 - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkFib20 - ns/op 1061816 ns/op 3.142 ns/op 337942.71
BenchmarkFib20 - B/op 0 B/op 0 B/op NaN
BenchmarkFib20 - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkFib25 - ns/op 1062210 ns/op 2.973 ns/op 357285.57
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: 4ae4294 Previous: 24c37f5 Ratio
BenchmarkFib10 - ns/op 1062499 ns/op 3.135 ns/op 338915.15
BenchmarkFib20 - ns/op 1061816 ns/op 3.142 ns/op 337942.71
BenchmarkFib25 - ns/op 1062210 ns/op 2.973 ns/op 357285.57

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

Please sign in to comment.