From 1a32423fe3c86b5596a5cdbf97ff29acd5fb118f Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Mon, 5 Oct 2015 09:52:49 +0530 Subject: Android: Add art-microbenchmarks Added host side of android multinode test. This test executes microbenchmarks for android runtime (ART). Change-Id: I16f749cd869a48a4dee49a1abef8568c400eef60 Signed-off-by: Vishal Bhoj Signed-off-by: Milosz Wasilewski --- android/art-microbenchmarks.yaml | 50 ++++++++++++++++++++++ android/scripts/configure-nexus9-for-benchmarks.sh | 5 +++ 2 files changed, 55 insertions(+) create mode 100644 android/art-microbenchmarks.yaml create mode 100755 android/scripts/configure-nexus9-for-benchmarks.sh (limited to 'android') diff --git a/android/art-microbenchmarks.yaml b/android/art-microbenchmarks.yaml new file mode 100644 index 0000000..d2f368e --- /dev/null +++ b/android/art-microbenchmarks.yaml @@ -0,0 +1,50 @@ +metadata: + name: art-microbenchmarks + format: "Lava-Test-Shell Test Definition 1.0" + description: "The script configures the nexus9 for low variance and runs the test" + maintainer: + - vishal.bhoj@linaro.org + os: + - ubuntu + devices: + - kvm + scope: + - perfomance + +install: + git-repos: + - http://android-git.linaro.org/git/linaro/art-testing.git + deps: + - android-tools-adb + - android-tools-fastboot + - libc6:i386 + - libncurses5:i386 + - libstdc++6:i386 + steps: + - apt-get install -y $JDK $JRE + - wget http://mirrors.kernel.org/ubuntu/pool/multiverse/g/google-android-build-tools-installer/google-android-build-tools-installer_20.0.0.2_i386.deb + - dpkg -i google-android-build-tools-installer_20.0.0.2_i386.deb + +params: + JDK: "default-jdk" + JRE: "default-jre" + TEST_NAME: "art-test" + TARGET_DEVICE: "nexus9" + ITERATIONS: 10 + MODE: 64 + +run: + steps: + - lava-wait $TEST_NAME-send-ip + - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt` + - if [ $IPADDR != "_MISSING_" ] + - then + - ./android/scripts/configure-$TARGET_DEVICE-for-benchmarks.sh + - cd art-testing/benchmarking/java-ubenchs + - ./run.py -t --iterations $ITERATIONS --mode $MODE + - lava-test-run-attach res.*.pkl + - echo "processes running" + - ps + - fi + - lava-sync $TEST_NAME-finished + diff --git a/android/scripts/configure-nexus9-for-benchmarks.sh b/android/scripts/configure-nexus9-for-benchmarks.sh new file mode 100755 index 0000000..d32c039 --- /dev/null +++ b/android/scripts/configure-nexus9-for-benchmarks.sh @@ -0,0 +1,5 @@ +adb -s $IPADDR wait-for-device +adb -s $IPADDR shell stop +adb -s $IPADDR shell "echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" +adb -s $IPADDR shell "echo 2295000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq" +adb -s $IPADDR shell "echo 2295000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" -- cgit v1.2.3