summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2018-04-12 10:43:19 -0600
committerJeff Sharkey <jsharkey@android.com>2018-04-12 10:43:22 -0600
commit3fc37deca8cf51fe3c1b98b8527de750c0a2f2e6 (patch)
tree27c078d4ca8dcfe6009f43d5d0a797f9349ecf1d /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parentef85bbfe4d68bf896c3939f5491db346bd84b094 (diff)
Benchmarks for streams.
We've been advocating as little usage of streams as possible inside the system_server, and this is a benchmark showing the costs of using streams compared to rolling manual logic. Results on a taimen show that direct route is 2.2x faster (!). Trial Report (1 of 2): Experiment {instrument=runtime, benchmarkMethod=timeDirect, vm=app_process, parameters={}} Results: runtime(ns): min=47234.28, 1st qu.=47234.28, median=47234.28, mean=47234.28, 3rd qu.=47234.28, max=47234.28 Trial Report (2 of 2): Experiment {instrument=runtime, benchmarkMethod=timeStreams, vm=app_process, parameters={}} Results: runtime(ns): min=105660.39, 1st qu.=105660.39, median=105660.39, mean=105660.39, 3rd qu.=105660.39, max=105660.39 Bug: 77808546 Test: vogar --mode app_process --benchmark frameworks/base/core/tests/benchmarks/src/android/util/StreamsBenchmark.java Change-Id: Iac43a75970eee2c91593316a1b5a45d2c96c476b
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions