History log of /libcore/benchmarks/src/benchmarks/regression/ReflectionBenchmark.java
Revision Date Author Comments
ea13f8291a92b6f47f50011da1d5e8c107984bc3 30-Nov-2015 Paul Duffin <paulduffin@google.com> Switch to latest version of Caliper

Convert the benchmarks to the latest version of Caliper.

Bug: 24848946
Change-Id: Iac04b30dac61ccb397a6685890da64bae4d3b318
b7b17db2c5dcc46a5112ab883fe2c64f8e16e5e8 19-Sep-2015 Alex Light <allight@google.com> Fix Class#getField method

Move implementation to native code for speed.

Add test for correct field selection behavior.

Add more benchmarks for getField.

Benchmark: libcore/benchmarks/src/benchmarks/regression/ReflectionBenchmark.java

Previous benchmarks:
Class_getField 814.26 ns; σ=6.44 ns @ 3 trials
GetInterfaceStaticField 1552.28 ns; σ=38.22 ns @ 10 trials
GetSuperClassField 939.85 ns; σ=2.94 ns @ 3 trials

New benchmarks:
Class_getField 735.97 ns; σ=0.98 ns @ 3 trials
GetInterfaceStaticField 1178.98 ns; σ=6.14 ns @ 3 trials
GetSuperClassField 853.76 ns; σ=16.86 ns @ 10 trials

Bug: 24209213

Change-Id: Id608a20ada2b9b254457a0b87cf1021590eedfe9
bf7fbb333d94d27f6fa68fd45d27ebc9c4e685e1 14-Jul-2015 Jeff Hao <jeffhao@google.com> Add isInstance performance test to ReflectionBenchmark.

Bug: 22409569
Change-Id: Iad775691ef3fb7fc7c0e1057ecdf827bd792d296
2abeaa62bbba16960e3d824745b77705478f8450 25-Apr-2015 Mathieu Chartier <mathieuc@google.com> Move Class.newInstance to native

Also add benchmark for Class.newInstance.

Bug: 20269715
Change-Id: Icd52155ce79a978a4d869855bfdfd7735abd8187
6d934bca6d9de3609966f6c91c4ecb88afd44946 12-Nov-2014 Narayan Kamath <narayan@google.com> Add benchmark for reflection performance on large classes.

The R.java file in this change is adapted from an autogenerated
frameworks class with android.* references stripped.

bug: 18211592

(cherry picked from commit f9362eeb6a8ec6411729a688d8050efffe8baa9d)

Change-Id: Ie627dd15e776425a1a7c0109bcf833872db46198
f9362eeb6a8ec6411729a688d8050efffe8baa9d 12-Nov-2014 Narayan Kamath <narayan@google.com> Add benchmark for reflection performance on large classes.

The R.java file in this change is adapted from an autogenerated
frameworks class with android.* references stripped.

bug: 18211592

Change-Id: I9efdf13d56e01647e267739fedfd0ff6e95a6f26
5a7833b406bb2716b057d3ed923f22f1f86b2a20 27-Mar-2013 Tsu Chiang Chuang <tsu@google.com> Build Caliper microbenchmark tests.Also fix the URLConnectionBenchmark tests to use the external/mockwebserver.

Change-Id: I48ec32e94f992fe570a6d729bb38971b3f211188