parent
f99b527e1c
commit
5b17cf2083
10
prepare.sh
10
prepare.sh
@ -11,3 +11,13 @@ git checkout -- .
|
||||
git checkout 341f207c1071f7290e3f228c710817c280c8dca1
|
||||
git apply ../crate_patches/regex.patch
|
||||
popd
|
||||
|
||||
git clone https://github.com/ebobby/simple-raytracer || echo "ebobby/simple-raytracer has already been cloned"
|
||||
pushd simple-raytracer
|
||||
git checkout -- .
|
||||
git checkout 804a7a21b9e673a482797aa289a18ed480e4d813
|
||||
|
||||
# build with cg_llvm for perf comparison
|
||||
cargo build
|
||||
mv target/debug/main raytracer_cg_llvm
|
||||
popd
|
||||
|
8
test.sh
8
test.sh
@ -61,6 +61,14 @@ $RUSTC example/mod_bench.rs --crate-type bin
|
||||
#echo "[BUILD] sysroot in release mode"
|
||||
#./build_sysroot/build_sysroot.sh --release
|
||||
|
||||
pushd simple-raytracer
|
||||
echo "[BENCH] ebobby/simple-raytracer"
|
||||
cargo clean && ../cargo.sh build
|
||||
cp ./target/*/debug/main ./raytracer_cg_clif
|
||||
|
||||
hyperfine --runs ${RUN_RUNS:-10} ./raytracer_cg_llvm ./raytracer_cg_clif
|
||||
popd
|
||||
|
||||
pushd regex
|
||||
echo "[TEST] rust-lang/regex example shootout-regex-dna"
|
||||
../cargo.sh clean
|
||||
|
Loading…
Reference in New Issue
Block a user