Commit current things

This commit is contained in:
Sharjeel Khan
2022-11-11 00:20:05 -05:00
parent 70f151222e
commit 2146ecd761
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
#{
# Thanks to http://rosettacode.org/wiki/Multiline_shebang#PicoLisp
exec pil $0 $1
# }#
(de fib (n) (cond ((= 0 n) 1)
((= 1 n) 1)
(T (+ (fib (- n 1)) (fib (- n 2))))))
(bye (println (fib (car (str (opt))))))

View File

View File

@@ -17,7 +17,7 @@ find build -type f -name \*slow\* -exec mv {} slow \;
cp ./build/kraken/out/bench/kraken-* ./slow
mv ./build/kraken/out/bench/kraken-cfold ./slow
mv ./build/newlisp/out/bench/* ./slow
mv ./build/picolisp/out/bench/* ./slow
#nix develop -i -c bash -c 'ulimit -s unlimited && find build -type f -executable -name \*rbtree\* -printf "\"%p 420000\"\n" | xargs hyperfine --ignore-failure --warmup 2 --export-markdown rbtree_table.md --export-csv rbtree_table.csv'
#nix develop -i -c bash -c 'ulimit -s unlimited && find build -type f -executable -name \*fib\* -printf "\"%p 30\"\n" | xargs hyperfine --ignore-failure --warmup 2 --export-markdown fib_table.md --export-csv fib_table.csv'