File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,19 @@ Benchmark with [tak function](https://en.wikipedia.org/wiki/Tak_(function)) [^ta
6
6
7
7
``` bash
8
8
$ ruby tarai.rb
9
+ go version go1.23.2 darwin/arm64
9
10
ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [arm64-darwin23]
10
11
Warming up --------------------------------------
11
12
sequential 1.000 i/100ms
12
13
parallel (Ractor) 1.000 i/100ms
13
14
parallel (goroutine) 1.000 i/100ms
14
15
Calculating -------------------------------------
15
- sequential 0.017 (± 0.0%) i/s (57.66 s/i) - 1.000 in 57.660028s
16
- parallel (Ractor) 0.050 (± 0.0%) i/s (20.04 s/i) - 1.000 in 20.038214s
17
- parallel (goroutine) 1.327 (± 0.0%) i/s (753.61 ms/i) - 7 .000 in 5.275383s
16
+ sequential 0.019 (± 0.0%) i/s (51.42 s/i) - 1.000 in 51.417686s
17
+ parallel (Ractor) 0.059 (± 0.0%) i/s (17.02 s/i) - 1.000 in 17.022087s
18
+ parallel (goroutine) 1.677 (± 0.0%) i/s (596.20 ms/i) - 9 .000 in 5.365863s
18
19
19
20
Comparison:
20
- parallel (goroutine): 1.3 i/s
21
- parallel (Ractor): 0.0 i/s - 26.59x slower
22
- sequential: 0.0 i/s - 76.51x slower
21
+ parallel (goroutine): 1.7 i/s
22
+ parallel (Ractor): 0.1 i/s - 28.55x slower
23
+ sequential: 0.0 i/s - 86.24x slower` ` `
23
24
` ` `
You can’t perform that action at this time.
0 commit comments