Commit c6de0c16
c6de0c16d19fMerged
Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 10 files · +10 added
Description
feat: add 10 benchmarks to test suite (84 total)
ackermann (66x), gcbench (9x), matmul (39x), partial_sums (15x), mandelbrot (49x), tak (23x), tarai (27x), life (743x), sudoku (21x), so_lists (17x). gcbench reduced to depth 12 for test timeout.
Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]
Details
- Commit
- c6de0c16d19f
- Parent
- e1b306a2fd68
test/bm_ackermann.rbaddedView file
1+
def ack(m, n)2+
if m == 03+
n + 14+
elsif n == 05+
ack(m - 1, 1)6+
else7+
ack(m - 1, ack(m, n - 1))8+
end9+
end10+
11+
puts ack(3, 9)12+
puts "done"test/bm_gcbench.rbaddedView file
Loading diff…
test/bm_matmul.rbaddedView file
Loading diff…
test/bm_partial_sums.rbaddedView file
Loading diff…
test/bm_so_lists.rbaddedView file
Loading diff…
test/bm_so_mandelbrot.rbaddedView file
Loading diff…
test/bm_tak.rbaddedView file
Loading diff…
test/bm_tarai.rbaddedView file
Loading diff…
test/life.rbaddedView file
Loading diff…
test/sudoku.rbaddedView file
Loading diff…