Created
April 27, 2016 02:53
-
-
Save okkez/136697f3681770b5191ffa33b4a0c33c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===== master 8f0c1c7 ===== | |
5.61s user 0.00s system 100% cpu 5.600 total | |
17.11s user 0.02s system 100% cpu 17.098 total | |
3.96s user 0.00s system 100% cpu 3.959 total | |
1.64s user 0.03s system 99% cpu 1.665 total | |
===== use-stack-directry ===== | |
5.08s user 0.00s system 100% cpu 5.072 total | |
17.03s user 0.03s system 100% cpu 17.031 total | |
4.13s user 0.00s system 100% cpu 4.123 total | |
1.60s user 0.02s system 100% cpu 1.626 total | |
zsh ./bench.sh 56.15s user 0.10s system 100% cpu 56.176 total | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
measure1() { | |
echo "$@" >> ../bench.log | |
#/usr/bin/time -o ../bench.log -a -- "$@" > /dev/null | |
time "$@" > /dev/null | |
} | |
measure2() { | |
echo "$@" >> bench.log | |
#/usr/bin/time -o bench.log -a -- "$@" > /dev/null | |
time "$@" > /dev/null | |
} | |
MRUBY=./build/bench/bin/mruby | |
echo "===== master 8f0c1c7 =====" | |
pushd mrub-master | |
measure1 $MRUBY benchmark/bm_ao_render.rb | |
measure1 $MRUBY benchmark/bm_app_lc_fizzbuzz.rb | |
measure1 $MRUBY benchmark/bm_fib.rb | |
measure1 $MRUBY benchmark/bm_so_lists.rb | |
#measure1 $MRUBY benchmark/build_config_boxing.rb | |
#measure1 $MRUBY benchmark/build_config_cc.rb | |
popd | |
echo "===== use-stack-directry =====" | |
measure2 $MRUBY benchmark/bm_ao_render.rb | |
measure2 $MRUBY benchmark/bm_app_lc_fizzbuzz.rb | |
measure2 $MRUBY benchmark/bm_fib.rb | |
measure2 $MRUBY benchmark/bm_so_lists.rb | |
#measure2 $MRUBY benchmark/build_config_boxing.rb | |
#measure2 $MRUBY benchmark/build_config_cc.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment