This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,13 @@ git checkout -- .
11
11
git checkout 341f207c1071f7290e3f228c710817c280c8dca1
12
12
git apply ../crate_patches/regex.patch
13
13
popd
14
+
15
+ git clone https://github.com/ebobby/simple-raytracer || echo " ebobby/simple-raytracer has already been cloned"
16
+ pushd simple-raytracer
17
+ git checkout -- .
18
+ git checkout 804a7a21b9e673a482797aa289a18ed480e4d813
19
+
20
+ # build with cg_llvm for perf comparison
21
+ cargo build
22
+ mv target/debug/main raytracer_cg_llvm
23
+ popd
Original file line number Diff line number Diff line change @@ -61,6 +61,14 @@ $RUSTC example/mod_bench.rs --crate-type bin
61
61
# echo "[BUILD] sysroot in release mode"
62
62
# ./build_sysroot/build_sysroot.sh --release
63
63
64
+ pushd simple-raytracer
65
+ echo " [BENCH] ebobby/simple-raytracer"
66
+ cargo clean && ../cargo.sh build
67
+ cp ./target/* /debug/main ./raytracer_cg_clif
68
+
69
+ hyperfine --runs ${RUN_RUNS:- 10} ./raytracer_cg_llvm ./raytracer_cg_clif
70
+ popd
71
+
64
72
pushd regex
65
73
echo " [TEST] rust-lang/regex example shootout-regex-dna"
66
74
../cargo.sh clean
You can’t perform that action at this time.
0 commit comments