Skip to content

Commit e621f28

Browse files
committed
feat: add go-runner
1 parent b42e942 commit e621f28

File tree

43 files changed

+408403
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+408403
-1
lines changed

example/fib_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@ func BenchmarkFibonacci10(b *testing.B) {
1414
})
1515
}
1616

17-
func BenchmarkFibonacci20(b *testing.B) {
17+
func BenchmarkFibonacci20_Loop(b *testing.B) {
1818
for b.Loop() {
1919
fibonacci(20)
2020
}
2121
}
2222

23+
func BenchmarkFibonacci20_bN(b *testing.B) {
24+
for i := 0; i < b.N; i++ {
25+
fibonacci(20)
26+
}
27+
}
28+
2329
func BenchmarkFibonacci30(b *testing.B) {
2430
for i := 0; i < b.N; i++ {
2531
fibonacci(30)

go-runner/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build-*/
2+
target/
3+
.codspeed

0 commit comments

Comments
 (0)