OSDN Git Service

Add benchmark for jobject functions
authorMathieu Chartier <mathieuc@google.com>
Wed, 23 Sep 2015 01:14:29 +0000 (18:14 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 23 Sep 2015 01:20:10 +0000 (18:20 -0700)
commit14f8b13d2593770b7f5387a33f6a8400c20aaa8e
tree5d4c8b1fac7738ae4541dd572d3f678dd3acf79b
parent6a0e05aff612118d45b87473829fd69a595003ba
Add benchmark for jobject functions

Measures performance of:
Add/RemoveLocalRef
Add/RemoveGlobalRef
Add/RemoveWeakGlobalRef
Decoding local, weak, global, handle scope jobjects.

N5 results:
benchmark    ns linear runtime
AddRemoveGlobal 476.7 ===========================
AddRemoveLocal  42.0 ==
AddRemoveWeakGlobal 519.7 ==============================
DecodeGlobal  69.9 ====
DecodeHandleScopeRef  38.9 ==
DecodeLocal  70.7 ====
DecodeWeakGlobal 119.7 ======

Change-Id: Iba014a9993909ee45fd52ae48d6dea8428a86bf2
benchmark/Android.mk
benchmark/jobject-benchmark/info.txt [new file with mode: 0644]
benchmark/jobject-benchmark/jobject_benchmark.cc [new file with mode: 0644]
benchmark/jobject-benchmark/src/JObjectBenchmark.java [new file with mode: 0644]