diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2025-07-17 10:19:33 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-07-21 10:58:30 -0400 |
| commit | 061224f3cbb0ae25e180443bb4b1dcab527bc4ec (patch) | |
| tree | e817ea0b154fd5534c77777794a1e320d93730b5 /include/ruby | |
| parent | efc232241eed75d5637295af71c631f54cec92c7 (diff) | |
Remove lock for dynamic symbol
Benchmark:
ARGV[0].to_i.times.map do
Ractor.new do
1_000_000.times do |i|
"hello#{i}".to_sym
end
end
end.map(&:value)
Results:
| Ractor count | Branch (s) | Master (s) |
|--------------|------------|------------|
| 1 | 0.364 | 0.401 |
| 2 | 0.555 | 1.149 |
| 3 | 0.583 | 3.890 |
| 4 | 0.680 | 3.288 |
| 5 | 0.789 | 5.107 |
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
