summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2015-10-05 09:52:49 +0530
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2015-10-05 20:31:34 +0100
commit1a32423fe3c86b5596a5cdbf97ff29acd5fb118f (patch)
treed1e9c3c599b031e476113d393527493a6442224c /android
parentda42f0f046f5093e663ded6426531caf7ea5f295 (diff)
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 <vishal.bhoj@linaro.org> Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'android')
-rw-r--r--android/art-microbenchmarks.yaml50
-rwxr-xr-xandroid/scripts/configure-nexus9-for-benchmarks.sh5
2 files changed, 55 insertions, 0 deletions
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"