Add ebobby/simple-raytracer as benchmark

cc #684
This commit is contained in:
bjorn3 2019-08-30 17:29:38 +02:00
parent f99b527e1c
commit 5b17cf2083
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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