summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-08-16 21:25:52 +0100
committerPatrick Simianer <p@simianer.de>2014-08-16 21:25:52 +0100
commit9a0859212de4d1304f9392fe910921227421c8c3 (patch)
tree1b1276312c83415d7d7d3838ce0347441b71951a /run.sh
parent3ba77e3474e39d7970784812f6851a726572f7c7 (diff)
cleanup
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh43
1 files changed, 0 insertions, 43 deletions
diff --git a/run.sh b/run.sh
deleted file mode 100755
index 83144b3..0000000
--- a/run.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/zsh
-
-
-export PATH=$PATH:/home/pks/src/scripts/
-export GEM_PATH=$GEM_PATH:/home/pks/lib/ruby
-REPEAT=10
-
-rm -f .overall
-
-echo
-echo "JSON parsing benchmark"
-echo "----------------------"
-echo " REAPEAT=$REPEAT"
-echo
-
-# fails: test_MicroJSON.sh \
-for prg in \
- test_cdec_json_parser \
- test_gason \
- test_JsonBox \
- test_jsoncpp \
- test_json-cpp \
- test_jsonxx \
- test_libjson \
- test_nosjob \
- test_picojson \
- test_rapidjson \
- test_sajson
-do
- echo "[$prg]"
- sync; echo 3 > /proc/sys/vm/drop_caches
- echo > .overall
- for file in `ls -S data/*.json`; do
- echo "$file:\t$(./benchmark.rb $REPEAT ./$prg $file 2>/dev/null | tee -a .overall | avg | round 2) s"
- done
- echo "---"
- echo "overall:\t$(avg < .overall | round 2)"
- echo " memory:\t$(./memusg.sh ./$prg data/1020.json 2>/dev/null)"
- echo
-done
-
-rm .overall
-