-
Notifications
You must be signed in to change notification settings - Fork 24
/
bench
executable file
·27 lines (23 loc) · 1.12 KB
/
bench
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash
if [ "$1" == "jsc" ]; then
echo "Running JSC (NO JIT) Benchmarks"
/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc --useJIT=false -e "console = {log:print}; process = {argv: [0, 'a.out', '-quota', '20']}; " -f ./_build/default/src/layout-test-fixed-encoding/LayoutTestFixedEncoding.bc.js
exit 0
fi
if [ "$1" == "v8" ]; then
echo "Running V8 Benchmarks"
node ./_build/default/src/layout-test-fixed-encoding/LayoutTestFixedEncoding.bc.js -quota 20
exit 0
fi
if [ "$1" == "jscWithJit" ]; then
echo "Running JSC+JIT Benchmarks"
/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc --useJIT=true -e "console = {log:print}; process = {argv: [0, 'a.out', '-quota', '20']}; " -f ./_build/default/src/layout-test-fixed-encoding/LayoutTestFixedEncoding.bc.js
exit 0
fi
if [ "$1" == "byte" ]; then
echo "Running Byte Code Benchmarks"
./_build/default/src/layout-test-fixed-encoding/LayoutTestFixedEncoding.bc -quota 20
exit 0
fi
echo "Running Native Benchmarks"
./_build/default/src/layout-test-fixed-encoding/LayoutTestFixedEncoding.exe -quota 20