|
1 | 1 | ## Ruby 2.6.10
|
2 | 2 |
|
3 | 3 | ```
|
4 |
| -samuel@aiko ~/P/i/benchmarks> ruby fiber-creation.rb |
| 4 | +samuel@aiko ~/P/s/a/b/core (main)> ruby fiber-creation.rb |
5 | 5 | 2.6.10
|
6 |
| -Fiber creation duration: 0.03247421991545707 seconds |
7 |
| -Fiber resume duration: 0.033807114930823445 seconds |
8 |
| -Fiber creation duration: 0.03336292295716703 seconds |
9 |
| -Fiber resume duration: 0.03446975699625909 seconds |
10 |
| -Fiber creation duration: 0.036547233001329005 seconds |
11 |
| -Fiber resume duration: 0.037760776933282614 seconds |
12 |
| -samuel@aiko ~/P/i/benchmarks> ruby thread-creation.rb |
| 6 | +Fiber duration: 4.31us |
| 7 | +Fiber duration: 3.88us |
| 8 | +Fiber duration: 3.45us |
| 9 | +samuel@aiko ~/P/s/a/b/core (main)> ruby thread-creation.rb |
13 | 10 | 2.6.10
|
14 |
| -Thread creation duration: 0.3327406020835042 seconds |
15 |
| -Thread join duration: 0.3362921440275386 seconds |
16 |
| -Thread creation duration: 0.28885943605564535 seconds |
17 |
| -Thread join duration: 0.3024547479581088 seconds |
18 |
| -Thread creation duration: 0.28072248096577823 seconds |
19 |
| -Thread join duration: 0.2932344099972397 seconds |
| 11 | +Thread duration: 48.68us |
| 12 | +Thread duration: 44.09us |
| 13 | +Thread duration: 47.51us |
20 | 14 | ```
|
21 | 15 |
|
22 | 16 | ## Ruby 2.7.7
|
23 | 17 |
|
24 | 18 | ```
|
25 |
| -samuel@aiko ~/P/i/benchmarks> ruby fiber-creation.rb |
| 19 | +samuel@aiko ~/P/s/a/b/core (main)> ruby fiber-creation.rb |
26 | 20 | 2.7.7
|
27 |
| -Fiber creation duration: 0.004129973007366061 seconds |
28 |
| -Fiber resume duration: 0.009417430032044649 seconds |
29 |
| -Fiber creation duration: 0.00369942095130682 seconds |
30 |
| -Fiber resume duration: 0.008967867936007679 seconds |
31 |
| -Fiber creation duration: 0.0028550089336931705 seconds |
32 |
| -Fiber resume duration: 0.00814394501503557 seconds |
33 |
| -samuel@aiko ~/P/i/benchmarks> ruby thread-creation.rb |
| 21 | +Fiber duration: 0.94us |
| 22 | +Fiber duration: 0.85us |
| 23 | +Fiber duration: 0.79us |
| 24 | +samuel@aiko ~/P/s/a/b/core (main)> ruby thread-creation.rb |
34 | 25 | 2.7.7
|
35 |
| -Thread creation duration: 0.14376470306888223 seconds |
36 |
| -Thread join duration: 0.15650222299154848 seconds |
37 |
| -Thread creation duration: 0.05303007597103715 seconds |
38 |
| -Thread join duration: 0.10422574798576534 seconds |
39 |
| -Thread creation duration: 0.019414776004850864 seconds |
40 |
| -Thread join duration: 0.08457108191214502 seconds |
| 26 | +Thread duration: 13.4us |
| 27 | +Thread duration: 11.18us |
| 28 | +Thread duration: 10.76us |
41 | 29 | ```
|
42 | 30 |
|
43 | 31 | ## Ruby 3.0.4
|
44 | 32 |
|
45 | 33 | ```
|
46 |
| -samuel@aiko ~/P/i/benchmarks> ruby fiber-creation.rb |
| 34 | +samuel@aiko ~/P/s/a/b/core (main)> ruby fiber-creation.rb |
47 | 35 | 3.0.4
|
48 |
| -Fiber creation duration: 0.00412312091793865 seconds |
49 |
| -Fiber resume duration: 0.009137733955867589 seconds |
50 |
| -Fiber creation duration: 0.003599958959966898 seconds |
51 |
| -Fiber resume duration: 0.00864996190648526 seconds |
52 |
| -Fiber creation duration: 0.0029245070181787014 seconds |
53 |
| -Fiber resume duration: 0.008252070983871818 seconds |
54 |
| -samuel@aiko ~/P/i/benchmarks> ruby thread-creation.rb |
| 36 | +Fiber duration: 0.84us |
| 37 | +Fiber duration: 0.81us |
| 38 | +Fiber duration: 0.91us |
| 39 | +samuel@aiko ~/P/s/a/b/core (main)> ruby thread-creation.rb |
55 | 40 | 3.0.4
|
56 |
| -Thread creation duration: 0.15326495608314872 seconds |
57 |
| -Thread join duration: 0.1620923290029168 seconds |
58 |
| -Thread creation duration: 0.04059368500020355 seconds |
59 |
| -Thread join duration: 0.09797750308644027 seconds |
60 |
| -Thread creation duration: 0.026068986975587904 seconds |
61 |
| -Thread join duration: 0.08405434701126069 seconds |
| 41 | +Thread duration: 13.5us |
| 42 | +Thread duration: 11.14us |
| 43 | +Thread duration: 9.68us |
62 | 44 | ```
|
63 | 45 |
|
64 | 46 | ## Ruby 3.1.3
|
65 | 47 |
|
66 | 48 | ```
|
67 |
| -samuel@aiko ~/P/i/benchmarks> ruby fiber-creation.rb |
| 49 | +samuel@aiko ~/P/s/a/b/core (main)> ruby fiber-creation.rb |
68 | 50 | 3.1.3
|
69 |
| -Fiber creation duration: 0.00456259201746434 seconds |
70 |
| -Fiber resume duration: 0.009786766022443771 seconds |
71 |
| -Fiber creation duration: 0.003958209999836981 seconds |
72 |
| -Fiber resume duration: 0.009175294078886509 seconds |
73 |
| -Fiber creation duration: 0.003569778986275196 seconds |
74 |
| -Fiber resume duration: 0.008846142911352217 seconds |
75 |
| -samuel@aiko ~/P/i/benchmarks> ruby thread-creation.rb |
| 51 | +Fiber duration: 0.91us |
| 52 | +Fiber duration: 0.87us |
| 53 | +Fiber duration: 0.84us |
| 54 | +samuel@aiko ~/P/s/a/b/core (main)> ruby thread-creation.rb |
76 | 55 | 3.1.3
|
77 |
| -Thread creation duration: 0.14986835094168782 seconds |
78 |
| -Thread join duration: 0.16197327291592956 seconds |
79 |
| -Thread creation duration: 0.055374343995936215 seconds |
80 |
| -Thread join duration: 0.11033689801115543 seconds |
81 |
| -Thread creation duration: 0.02628220897167921 seconds |
82 |
| -Thread join duration: 0.08593441394623369 seconds |
| 56 | +Thread duration: 13.18us |
| 57 | +Thread duration: 11.85us |
| 58 | +Thread duration: 11.35us |
83 | 59 | ```
|
84 | 60 |
|
85 | 61 | ## Ruby 3.2.1
|
86 | 62 |
|
87 | 63 | ```
|
88 |
| -samuel@aiko ~/P/i/benchmarks> ruby fiber-creation.rb |
| 64 | +samuel@aiko ~/P/s/a/b/core (main)> ruby fiber-creation.rb |
89 | 65 | 3.2.1
|
90 |
| -Fiber creation duration: 0.005040982039645314 seconds |
91 |
| -Fiber resume duration: 0.010302124079316854 seconds |
92 |
| -Fiber creation duration: 0.003798560006543994 seconds |
93 |
| -Fiber resume duration: 0.009062751894816756 seconds |
94 |
| -Fiber creation duration: 0.0030817579245194793 seconds |
95 |
| -Fiber resume duration: 0.008363569970242679 seconds |
96 |
| -samuel@aiko ~/P/i/benchmarks> ruby thread-creation.rb |
| 66 | +Fiber duration: 0.97us |
| 67 | +Fiber duration: 0.99us |
| 68 | +Fiber duration: 0.74us |
| 69 | +samuel@aiko ~/P/s/a/b/core (main)> ruby thread-creation.rb |
97 | 70 | 3.2.1
|
98 |
| -Thread creation duration: 0.1543678540037945 seconds |
99 |
| -Thread join duration: 0.1661193009931594 seconds |
100 |
| -Thread creation duration: 0.05045510292984545 seconds |
101 |
| -Thread join duration: 0.1042662620311603 seconds |
102 |
| -Thread creation duration: 0.026006213040091097 seconds |
103 |
| -Thread join duration: 0.0831627210136503 seconds |
104 |
| -``` |
| 71 | +Thread duration: 13.65us |
| 72 | +Thread duration: 12.14us |
| 73 | +Thread duration: 12.81us |
| 74 | +``` |
0 commit comments