/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/js/bench.sh

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs · Shell · 5 lines · 4 code · 0 blank · 1 comment · 2 complexity · 58049ac6944b58e50eb2d205283a0474 MD5 · raw file

  1. #!/bin/bash
  2. X="var d = Date.now();";
  3. for i in t/*.js; do X="$X load(\"$i\");"; done
  4. X="$X print(Date.now() - d);"
  5. echo $X | (./Darwin_OPT.OBJ/js -j || ./Linux_All_OPT.OBJ/js -j)