• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Copyright JS Foundation and other contributors, http://js.foundation
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9#     http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17ENGINE=$1
18
19function run ()
20{
21    echo "Running test: $1.js"
22        ./tools/perf.sh 5 $ENGINE ./tests/benchmarks/$1.js
23        ./tools/rss-measure.sh $ENGINE ./tests/benchmarks/$1.js
24}
25
26echo "Running Sunspider:"
27#run jerry/sunspider/3d-morph // too fast
28run jerry/sunspider/bitops-3bit-bits-in-byte
29run jerry/sunspider/bitops-bits-in-byte
30run jerry/sunspider/bitops-bitwise-and
31run jerry/sunspider/controlflow-recursive
32run jerry/sunspider/math-cordic
33run jerry/sunspider/math-partial-sums
34run jerry/sunspider/math-spectral-norm
35
36echo "Running Jerry:"
37run jerry/cse
38run jerry/cse_loop
39run jerry/cse_ready_loop
40run jerry/empty_loop
41run jerry/function_loop
42run jerry/loop_arithmetics_10kk
43run jerry/loop_arithmetics_1kk
44
45echo "Running UBench:"
46run ubench/function-closure
47run ubench/function-empty
48run ubench/function-correct-args
49run ubench/function-excess-args
50run ubench/function-missing-args
51run ubench/function-sum
52run ubench/loop-empty-resolve
53run ubench/loop-empty
54run ubench/loop-sum
55
56
57