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 compiler6-
# make test # Compile bm_so_mandelbrot.rb and verify output6+
# make test # Compile examples/bm_so_mandelbrot.rb and verify output77
88
# Configuration99
PRISM_VERSION ?= 1.4.0@@ -44,10 +44,10 @@
4444
@echo "Building prism..."4545
cd $(PRISM_DIR) && make4646
47-
# Test: compile bm_so_mandelbrot.rb and verify output47+
# Test: compile examples/bm_so_mandelbrot.rb and verify output4848
test: spinel49-
@echo "=== Compiling bm_so_mandelbrot.rb ==="50-
./spinel --source=bm_so_mandelbrot.rb --output=mandelbrot_aot.c49+
@echo "=== Compiling examples/bm_so_mandelbrot.rb ==="50+
./spinel --source=examples/bm_so_mandelbrot.rb --output=mandelbrot_aot.c5151
@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.pbm5959
@echo "=== Running CRuby reference ==="60-
ruby bm_so_mandelbrot.rb > mandelbrot_ruby.pbm60+
ruby examples/bm_so_mandelbrot.rb > mandelbrot_ruby.pbm6161
@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: spinel71-
./spinel --source=bm_so_mandelbrot.rb --output=mandelbrot_aot.c71+
./spinel --source=examples/bm_so_mandelbrot.rb --output=mandelbrot_aot.c7272
@echo "Generated mandelbrot_aot.c"7373
7474
clean:examples/bm_ao_render.rbrenamedView file
Loading diff…
examples/bm_app_lc_fizzbuzz.rbrenamedView file
Loading diff…
examples/bm_fib.rbrenamedView file
Loading diff…
examples/bm_mandel_term.rbrenamedView file
Loading diff…
examples/bm_so_lists.rbrenamedView file
Loading diff…
examples/bm_so_mandelbrot.rbrenamedView file
Loading diff…