commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz" <p...@steitz.com>
Subject Re: [BeanUtils] Interesting Microbenchmarks
Date Sun, 03 Aug 2003 17:52:49 GMT
Craig R. McClanahan wrote:

<snip>
It will also be interesting to try this on different JDK
generations, to confirm whether the improvements in reflection
performance that have been described for recent versions shows through
in the results here.
</snip>

Here are some results comparing JDK versions. All tests were run on an
IBM ThinkPad T23, 1ghz, 512MB RAM, Red Hat Linux 8.0 (kernel 2.4.18-14).
All JDKs are Sun. I did not recompile the sources or tests on 1.3 or 1.2
-- i.e. all tests use classes compiled under 1.4.2.(built using CVS HEAD 
on 8/2, after PropertyUtils optimization commit by craigmcc, 2003/08/02 
17:43:52).

Results for BeanUtils (which performs type conversions):
=======================================================

Method         Dest Orig  1.4.2 1.3.1_08 1.2.2_016
-------------- ---- ---- ------ -------- ---------

copyProperties bean bean  18445  36050   108544
copyProperties dyna bean  19441  28543   104344
copyProperties bean dyna  16329  26175    88336
copyProperties dyna dyna  13255  13824    61661
copyProperties bean map   16444  26712    91759
copyProperties dyna map   13554  14270    65854
copyProperties bean strs  17395  27974    99046
copyProperties dyna strs  14415  16582    71543

populate       bean map    7815  18596    69910
populate       dyna map    5732   8561    52778
populate       bean strs   5845  16332    62717
populate       dyna strs   4061   6243    46365


Results for PropertyUtils (no type conversions):
===============================================

Method         Dest Orig  1.4.2 1.3.1_08 1.2.2_016
-------------- ---- ---- ------ -------- ---------
copyProperties bean bean   5439   19971   61233
copyProperties dyna bean   4331   12948   50071
copyProperties bean dyna   3237   10546   37851
copyProperties dyna dyna    697    1038   13146
copyProperties bean map    3408   10685   41619
copyProperties dyna map     776    1254   16328


-Phil






Mime
View raw message