db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert S. Sfeir" <rob...@codepuccino.com>
Subject Perf Test of post final keyword changes
Date Fri, 16 Apr 2004 02:15:44 GMT
I did some perf tests on my laptop of pre and post performance changes 
of adding the final keyword for method params and variables.

I see as little as 1MB to as much as 10MB of difference in the tests, 
and it seems ODMG benefits from the change the most.  I only processed 
the src directory, so if other directories should also be involved, let 
me know I can make the change there too.

Perf Pre Final Modification

perf-test:
      [ojb] ####################################################
      [ojb] # Start OJB performance-test framework - do 3 loop #
      [ojb] ####################################################

      [ojb] perform test loop 1

      [ojb] # Start PerfTest: JDBC #
      [ojb] allocated memory after test: 21720 kb
      [ojb] perform test loop 2
      [ojb] allocated memory after test: 24491 kb
      [ojb] perform test loop 3
      [ojb] allocated memory after test: 24407 kb
      [ojb] perform test loop 1

      [ojb] # Start PerfTest: PB #
      [ojb] allocated memory after test: 33640 kb
      [ojb] perform test loop 2
      [ojb] allocated memory after test: 33891 kb
      [ojb] perform test loop 3
      [ojb] allocated memory after test: 26743 kb
      [ojb] perform test loop 1

      [ojb] # Start PerfTest: ODMG #
      [ojb] allocated memory after test: 35996 kb
      [ojb] perform test loop 2
      [ojb] allocated memory after test: 122926 kb
      [ojb] perform test loop 3
      [ojb] allocated memory after test: 33670 kb
      [ojb] perform test loop 1

      [ojb] # Start PerfTest: OTM #
      [ojb] allocated memory after test: 63958 kb
      [ojb] perform test loop 2
      [ojb] allocated memory after test: 62199 kb
      [ojb] perform test loop 3
      [ojb] allocated memory after test: 63550 kb


      [ojb] ========================================================
      [ojb]         OJB PERFORMANCE TEST SUMMARY
      [ojb] 10 concurrent threads, handle 2000 objects per thread
      [ojb]         - performance mode
      [ojb] ========================================================
      [ojb]      API  Period   Total  Insert   Fetch  Update  Delete
      [ojb]            [sec]   [sec]  [msec]  [msec]  [msec]  [msec]
      [ojb] --------------------------------------------------------
      [ojb]     JDBC   9.567   9.025    4871      73    2999    1081
      [ojb]       PB  13.125  12.305    6055     122    4429    1698
      [ojb]     ODMG  24.572  22.631   10267    3118    5452    3793
      [ojb]      OTM  34.076  29.732   12136     564    7484    9546
      [ojb] ========================================================

      [ojb] PerfTest takes 247 [sec]

Perf Post Final Modification

perf-test:
      [ojb] ####################################################
      [ojb] # Start OJB performance-test framework - do 3 loop #
      [ojb] ####################################################

      [ojb] perform test loop 1

      [ojb] # Start PerfTest: JDBC #
      [ojb] allocated memory after test: 21538 kb
      [ojb] perform test loop 2
      [ojb] allocated memory after test: 24190 kb
      [ojb] perform test loop 3
      [ojb] allocated memory after test: 25813 kb
      [ojb] perform test loop 1

      [ojb] # Start PerfTest: PB #
      [ojb] allocated memory after test: 27034 kb
      [ojb] perform test loop 2
      [ojb] allocated memory after test: 33458 kb
      [ojb] perform test loop 3
      [ojb] allocated memory after test: 27397 kb
      [ojb] perform test loop 1

      [ojb] # Start PerfTest: ODMG #
      [ojb] allocated memory after test: 25510 kb
      [ojb] perform test loop 2
      [ojb] allocated memory after test: 119453 kb
      [ojb] perform test loop 3
      [ojb] allocated memory after test: 25448 kb
      [ojb] perform test loop 1

      [ojb] # Start PerfTest: OTM #
      [ojb] allocated memory after test: 66640 kb
      [ojb] perform test loop 2
      [ojb] allocated memory after test: 64782 kb
      [ojb] perform test loop 3
      [ojb] allocated memory after test: 62137 kb


      [ojb] ========================================================
      [ojb]         OJB PERFORMANCE TEST SUMMARY
      [ojb] 10 concurrent threads, handle 2000 objects per thread
      [ojb]         - performance mode
      [ojb] ========================================================
      [ojb]      API  Period   Total  Insert   Fetch  Update  Delete
      [ojb]            [sec]   [sec]  [msec]  [msec]  [msec]  [msec]
      [ojb] --------------------------------------------------------
      [ojb]     JDBC   9.463   8.924    4987      70    2765    1100
      [ojb]       PB  13.402  12.281    6453     506    3717    1604
      [ojb]     ODMG  23.944  21.364   11132    1905    5300    3025
      [ojb]      OTM  33.097  28.161   12614     673    6134    8739
      [ojb] ========================================================

      [ojb] PerfTest takes 243 [sec]

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message