Commit d16ed046

d16ed046abcbMerged

Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 1 file · ~1 modified

Description

docs: rebase benchmark table against miniruby (Ruby 4.1.0dev)

Replace the previous comparison against system ruby 3.2.3 with the latest CRuby miniruby build (4.1.0dev + Prism, no gems). miniruby is noticeably faster than 3.2.3 on many of these workloads, so Spinel's speedup multiples drop — but the ranking and the overall picture (computation far ahead, GC-heavy roughly par) are unchanged.

Geometric mean across the 28 listed benchmarks: 11.6x.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
d16ed046abcb
Parent
f5371fa7b865

README.mdmodifiedView file

@@ -79,50 +79,54 @@
7979 ## Benchmarks
8080
8181 74 tests pass. 55 benchmarks pass.
82-Geometric mean: **~49x faster** than CRuby across 50 benchmarks.
82+Geometric mean: **~11.6x faster** than miniruby (Ruby 4.1.0dev) across
83+the 28 benchmarks below. Baseline is the latest CRuby `miniruby` build
84+(without bundled gems), which is considerably faster than the system
85+`ruby` (3.2.3); Spinel's advantage is correspondingly smaller but still
86+substantial on computation-heavy workloads.
8387
8488 ### Computation
8589
86-| Benchmark | Spinel | CRuby | Speedup |
90+| Benchmark | Spinel | miniruby | Speedup |
8791 |---|---|---|---|
88-| ackermann | 5 ms | 394 ms | 78.8x |
89-| life (Conway's GoL) | 22 ms | 1,525 ms | 69.3x |
90-| fib (recursive) | 11 ms | 560 ms | 50.9x |
91-| mandelbrot | 24 ms | 1,187 ms | 49.5x |
92-| matmul | 9 ms | 329 ms | 36.6x |
93-| fasta (DNA seq gen) | 2 ms | 72 ms | 36.0x |
94-| fannkuch | 2 ms | 71 ms | 35.5x |
95-| nqueens | 777 ms | 24,912 ms | 32.1x |
96-| tarai | 16 ms | 423 ms | 26.4x |
97-| tak | 20 ms | 499 ms | 24.9x |
98-| sudoku | 6 ms | 148 ms | 24.7x |
99-| partial_sums | 81 ms | 1,282 ms | 15.8x |
100-| sieve | 38 ms | 435 ms | 11.4x |
92+| life (Conway's GoL) | 20 ms | 1,733 ms | 86.7x |
93+| ackermann | 5 ms | 374 ms | 74.8x |
94+| mandelbrot | 25 ms | 1,453 ms | 58.1x |
95+| fib (recursive) | 17 ms | 581 ms | 34.2x |
96+| nqueens | 10 ms | 304 ms | 30.4x |
97+| tarai | 16 ms | 461 ms | 28.8x |
98+| tak | 22 ms | 532 ms | 24.2x |
99+| matmul | 13 ms | 313 ms | 24.1x |
100+| sudoku | 6 ms | 102 ms | 17.0x |
101+| partial_sums | 93 ms | 1,498 ms | 16.1x |
102+| fannkuch | 2 ms | 19 ms | 9.5x |
103+| sieve | 39 ms | 332 ms | 8.5x |
104+| fasta (DNA seq gen) | 3 ms | 21 ms | 7.0x |
101105
102106 ### Data Structures & GC
103107
104-| Benchmark | Spinel | CRuby | Speedup |
108+| Benchmark | Spinel | miniruby | Speedup |
105109 |---|---|---|---|
106-| rbtree (red-black tree) | 23 ms | 571 ms | 24.8x |
107-| huffman (encoding) | 10 ms | 200 ms | 20.0x |
108-| splay tree | 14 ms | 241 ms | 17.2x |
109-| binary_trees | 11 ms | 105 ms | 9.5x |
110-| so_lists | 74 ms | 510 ms | 6.9x |
111-| linked_list | 101 ms | 455 ms | 4.5x |
112-| gcbench | 1,634 ms | 4,247 ms | 2.6x |
110+| rbtree (red-black tree) | 24 ms | 543 ms | 22.6x |
111+| splay tree | 14 ms | 195 ms | 13.9x |
112+| huffman (encoding) | 6 ms | 59 ms | 9.8x |
113+| so_lists | 76 ms | 410 ms | 5.4x |
114+| binary_trees | 11 ms | 40 ms | 3.6x |
115+| linked_list | 136 ms | 388 ms | 2.9x |
116+| gcbench | 1,845 ms | 3,641 ms | 2.0x |
113117
114118 ### Real-World Programs
115119
116-| Benchmark | Spinel | CRuby | Speedup |
120+| Benchmark | Spinel | miniruby | Speedup |
117121 |---|---|---|---|
118-| bigint_fib (1000 digits) | 2 ms | 66 ms | 33.0x |
119-| pidigits (bigint) | 2 ms | 65 ms | 32.5x |
120-| str_concat | 2 ms | 67 ms | 33.5x |
121-| json_parse | 38 ms | 436 ms | 11.5x |
122-| ao_render (ray tracer) | 409 ms | 3,674 ms | 9.0x |
123-| template engine | 137 ms | 961 ms | 7.0x |
124-| io_wordcount | 26 ms | 153 ms | 5.9x |
125-| csv_process | 229 ms | 936 ms | 4.1x |
122+| json_parse | 39 ms | 394 ms | 10.1x |
123+| bigint_fib (1000 digits) | 2 ms | 16 ms | 8.0x |
124+| ao_render (ray tracer) | 417 ms | 3,334 ms | 8.0x |
125+| pidigits (bigint) | 2 ms | 13 ms | 6.5x |
126+| str_concat | 2 ms | 13 ms | 6.5x |
127+| template engine | 152 ms | 936 ms | 6.2x |
128+| csv_process | 234 ms | 860 ms | 3.7x |
129+| io_wordcount | 33 ms | 97 ms | 2.9x |
126130
127131 ## Supported Ruby Features
128132