bobobear / lambdaj

Automatically exported from code.google.com/p/lambdaj
Apache License 2.0
0 stars 0 forks source link

Performance analysis report is wrong #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I get svn/  trunk/ src/ test/ java/ ch/ lambdaj/ demo/ *
2. And download jar file set the class path in eclipse
3. When I run this program I got worst performance report 

mysystem configuration 1 GB RAM, 3.0 dual core processer, and lenovo PC.

out put like 
-------------------------------------------------
*** testPrintAllBrands
iterative: 526 msecs
lambdaj: 4346 msecs
*** testFindAllSalesOfAFerrari
iterative: 371 msecs
lambdaj: 3914 msecs
*** testFindAllBuysOfYoungestPerson
iterative: 13396 msecs
lambdaj: 17139 msecs
*** testFindMostCostlySaleValue
iterative: 310 msecs
lambdaj: 2954 msecs
*** testSumSalesCostWhereBothActorsAreAMale
iterative: 542 msecs
lambdaj: 7394 msecs
*** testFindYoungestAgeOfWhoBoughtACarForMoreThan50000
iterative: 10395 msecs
lambdaj: 22245 msecs
*** testSortSalesByCost
iterative: 4362 msecs
lambdaj: 17372 msecs
*** testExtractCarsOriginalCost
iterative: 247 msecs
lambdaj: 1036 msecs
*** testIndexCarsByBrand
iterative: 511 msecs
lambdaj: 1284 msecs
*** testGroupSalesByBuyersAndSellers
iterative: 24735 msecs
lambdaj: 38626 msecs
*** testFindMostBoughtCar
iterative: 7549 msecs
lambdaj: 30136 msecs
526;526;526;4346;4346;4346
371;371;371;3914;3914;3914
13396;13396;13396;17139;17139;17139
310;310;310;2954;2954;2954
542;542;542;7394;7394;7394
10395;10395;10395;22245;22245;22245
4362;4362;4362;17372;17372;17372
247;247;247;1036;1036;1036
511;511;511;1284;1284;1284
24735;24735;24735;38626;38626;38626
7549;7549;7549;30136;30136;30136

Original issue reported on code.google.com by sasimsit on 8 Sep 2009 at 1:45

GoogleCodeExporter commented 9 years ago
Of course the test are dependent on the hardware where you run then (yours seem 
quite
faster than mine) together with many other factors like:

the operating system: I am using windows xp
the java vm version: mine is 1.6.0_15-b03
the amount of heap space you gave to the vm: I used 512Mb in order to avoid any
garbage collector side effect

Anyway those tests are meant just to have a rough idea of the performance loss
introduced by lambdaj. Under this point of view your results don't look so 
different
from mine. In particular tests 3, 7 and 9 gave a better ratio in your run than 
in mine.

One last advice is to run the tests more than once. You can do that just by 
passing
the number of runs you want to do to the main class you used. As I wrote in my
presentation the results I published are the mean on 10 runs.

Let me know if that makes sense.

Original comment by mario.fu...@gmail.com on 8 Sep 2009 at 6:20

GoogleCodeExporter commented 9 years ago

Original comment by mario.fu...@gmail.com on 16 Sep 2009 at 9:43