mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Add support scripts for testing and becnmarking
This commit is contained in:
parent
cd67b69bf9
commit
ff935ea417
@ -36,7 +36,7 @@ function collect_entry()
|
|||||||
OUT_NAME="$1_OUT";
|
OUT_NAME="$1_OUT";
|
||||||
OUT=$OUT_NAME;
|
OUT=$OUT_NAME;
|
||||||
|
|
||||||
SUM=$(grep "$1" < /proc/"$PID"/smaps | awk '{sum += $2;} END { if (sum != 0) { print sum; }; }');
|
SUM=$(cat /proc/"$PID"/smaps 2>/dev/null | grep "$1" | awk '{sum += $2;} END { if (sum != 0) { print sum; }; }');
|
||||||
|
|
||||||
if [ "$SUM" != "" ];
|
if [ "$SUM" != "" ];
|
||||||
then
|
then
|
||||||
|
|||||||
55
tools/run_benchmarks.sh
Executable file
55
tools/run_benchmarks.sh
Executable file
@ -0,0 +1,55 @@
|
|||||||
|
# Copyright 2014 Samsung Electronics Co., Ltd.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ENGINE=$1
|
||||||
|
|
||||||
|
function run ()
|
||||||
|
{
|
||||||
|
echo "Running test: $1.js"
|
||||||
|
./tools/rss_measure.sh $ENGINE ./benchmarks/$1.js
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Running Sunspider:"
|
||||||
|
#run jerry/sunspider/3d-morph // too fast
|
||||||
|
run jerry/sunspider/bitops-3bit-bits-in-byte
|
||||||
|
run jerry/sunspider/bitops-bits-in-byte
|
||||||
|
run jerry/sunspider/bitops-bitwise-and
|
||||||
|
#run jerry/sunspider/controlflow-recursive # work under mem-stats
|
||||||
|
run jerry/sunspider/math-cordic
|
||||||
|
run jerry/sunspider/math-partial-sums
|
||||||
|
#run jerry/sunspider/math-spectral-norm # fix
|
||||||
|
|
||||||
|
echo "Running Jerry:"
|
||||||
|
run jerry/cse
|
||||||
|
run jerry/cse_loop
|
||||||
|
run jerry/cse_ready_loop
|
||||||
|
run jerry/empty_loop
|
||||||
|
run jerry/function_loop
|
||||||
|
run jerry/loop_arithmetics_10kk
|
||||||
|
run jerry/loop_arithmetics_1kk
|
||||||
|
|
||||||
|
echo "Running UBench:"
|
||||||
|
run ubench/function-closure
|
||||||
|
run ubench/function-empty
|
||||||
|
run ubench/function-correct-args
|
||||||
|
run ubench/function-excess-args
|
||||||
|
run ubench/function-missing-args
|
||||||
|
run ubench/function-sum
|
||||||
|
run ubench/loop-empty-resolve
|
||||||
|
run ubench/loop-empty
|
||||||
|
run ubench/loop-sum
|
||||||
|
|
||||||
|
|
||||||
18
tools/run_test_suite_test262.sh
Executable file
18
tools/run_test_suite_test262.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
# Copyright 2014 Samsung Electronics Co., Ltd.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
TARGET=$1
|
||||||
|
PARSE=$2
|
||||||
|
rm ./js.files jerry.error jerry.passed; ./tools/jerry_test.sh ./out/$TARGET/jerry . ./tests/test262/test/suite/ $PARSE
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user