Commit 6486215c

6486215c2ab2Merged

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

Description

Move benchmark files to examples/

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

Details

Commit
6486215c2ab2
Parent
bcff205e2e93

MakefilemodifiedView file

@@ -3,7 +3,7 @@
33 # Usage:
44 # make deps # Fetch and build dependencies (prism)
55 # make # Build the spinel compiler
6-# make test # Compile bm_so_mandelbrot.rb and verify output
6+# make test # Compile examples/bm_so_mandelbrot.rb and verify output
77
88 # Configuration
99 PRISM_VERSION ?= 1.4.0
@@ -44,10 +44,10 @@
4444 @echo "Building prism..."
4545 cd $(PRISM_DIR) && make
4646
47-# Test: compile bm_so_mandelbrot.rb and verify output
47+# Test: compile examples/bm_so_mandelbrot.rb and verify output
4848 test: spinel
49- @echo "=== Compiling bm_so_mandelbrot.rb ==="
50- ./spinel --source=bm_so_mandelbrot.rb --output=mandelbrot_aot.c
49+ @echo "=== Compiling examples/bm_so_mandelbrot.rb ==="
50+ ./spinel --source=examples/bm_so_mandelbrot.rb --output=mandelbrot_aot.c
5151 @echo "=== Compiling generated C code ==="
5252 $(CC) -O2 -ffunction-sections -Wl,--gc-sections \
5353 mandelbrot_aot.c \
@@ -57,7 +57,7 @@
5757 @echo "=== Running AOT binary ==="
5858 ./mandelbrot > mandelbrot_aot.pbm
5959 @echo "=== Running CRuby reference ==="
60- ruby bm_so_mandelbrot.rb > mandelbrot_ruby.pbm
60+ ruby examples/bm_so_mandelbrot.rb > mandelbrot_ruby.pbm
6161 @echo "=== Comparing output ==="
6262 @if diff mandelbrot_aot.pbm mandelbrot_ruby.pbm > /dev/null 2>&1; then \
6363 echo "SUCCESS: Output matches!"; \
@@ -68,7 +68,7 @@
6868
6969 # Generate C code only (no mruby compilation)
7070 gen: spinel
71- ./spinel --source=bm_so_mandelbrot.rb --output=mandelbrot_aot.c
71+ ./spinel --source=examples/bm_so_mandelbrot.rb --output=mandelbrot_aot.c
7272 @echo "Generated mandelbrot_aot.c"
7373
7474 clean: