diff options
| author | Doug Zongker <dougz@android.com> | 2010-02-04 10:39:14 -0800 |
|---|---|---|
| committer | Doug Zongker <dougz@android.com> | 2010-02-04 15:54:00 -0800 |
| commit | 6123eafa2c2d91c46890d5ee36e412e176a9399f (patch) | |
| tree | fd34a8ecd02cb90e05982ee58c5464d3ed88641b /libs/rs/rsg_ScriptJavaClass.cpp | |
| parent | 3c4a1ebc19abba06af565071c243e55ba6eef585 (diff) | |
a new java implementation of base64 for android-common
A new Base64 encoder/decoder class. Some benchmarks comparing the
decoder it to those from android.os.Base64Utils (a decode-only native
implementation not accessible to apps) and
org.apache.commons.codec.binary.Base64, all with the JIT enabled:
1k encoded data
APACHE avg: 811 us min: 244 us max: 13671 us
COMMON avg: 263 us min: 30 us max: 4730 us
NATIVE avg: 102 us min: 61 us max: 5493 us
10k encoded data
APACHE avg: 3624 us min: 2746 us max: 23895 us
COMMON avg: 979 us min: 518 us max: 7751 us
NATIVE avg: 817 us min: 762 us max: 3143 us
100k encoded data
APACHE avg: 33167 us min: 31829 us max: 140411 us
COMMON avg: 6047 us min: 5493 us max: 45227 us
NATIVE avg: 10109 us min: 10009 us max: 12451 us
Change-Id: Ic622e3a967a62d57d30bd25b80cbe4e0dd60e764
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions
