Add nqueens benchmark (new kraken impl, with koka and cpp moved over from koka_bench)

This commit is contained in:
Nathan Braswell
2022-05-16 23:00:56 -04:00
parent 5ee4020c2b
commit e6a1ad5bf3
8 changed files with 174 additions and 7 deletions

View File

@@ -7,7 +7,10 @@ then
pushd build
nix develop -i -c bash -c 'cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build .'
popd
rm -rf ./build/CMakeFiles || true
fi
pushd build
nix develop -i -c bash -c 'make'
popd
nix develop -i -c bash -c 'ulimit -s unlimited && find build -type f -executable -name \*rbtree -printf "\"%p 42000\"\n" | xargs hyperfine --ignore-failure --warmup 2 --export-markdown rbtree_table.md'
nix develop -i -c bash -c 'ulimit -s unlimited && find build -type f -executable -name \*nqueens\* -printf "\"%p 10\"\n" | xargs hyperfine --ignore-failure --warmup 2 --export-markdown rbnqueens_table.md'
nix develop -i -c bash -c 'ulimit -s unlimited && find build -type f -executable -name \*rbtree\* -printf "\"%p 42000\"\n" | xargs hyperfine --ignore-failure --warmup 2 --export-markdown rbtree_table.md'