Skip to content

Commit 87cf37a

Browse files
committed
Add Go sequential bench
1 parent 04d8887 commit 87cf37a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_benchmark/tarai.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ def tarai(x, y, z) =
4646
end.each(&:resume)
4747
}
4848

49+
# Go: sequential version
50+
x.report("Go: sequential"){ 4.times{ Example::Benchmark.tarai(14, 7, 0) } }
51+
4952
# Go: parallel version (with goroutine)
5053
x.report("Go: goroutine"){ Example::Benchmark.tarai_goroutine(14, 7, 0, 4) }
5154

0 commit comments

Comments
 (0)