Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding Db/DbOom performance tests #292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moh-sushi
Copy link

Hi,

performance test for Jodd DbOOm added.
This PR is based on this commit from Igor

note : after merge an update of the result table with your results should be done, too. Thx!

Bye,
Sascha

@igr
Copy link

igr commented Mar 9, 2018

Did you get a chance to measure on your side? Just curious how it was performing...

@moh-sushi
Copy link
Author

Hi @igr ,

Tests were started 3 times in a row in the IDE :

Select Results

HandCoded took 38ms
Sql2oTypical took 48ms (26,32% slower)
Sql2oOptimized took 56ms (47,37% slower)
DbOomOptimal took 61ms (60,53% slower)
DbOomTypical took 73ms (92,11% slower)
ApacheDbUtilsTypical took 80ms (110,53% slower)
MyBatis took 207ms (444,74% slower)
JDBI took 220ms (478,95% slower)
JOOQ took 310ms (715,79% slower)
SpringJdbcTemplate took 385ms (913,16% slower)
HibernateTypical took 399ms (950,00% slower)

Select Results

HandCoded took 43ms
Sql2oTypical took 50ms (16,28% slower)
DbOomOptimal took 54ms (25,58% slower)
Sql2oOptimized took 60ms (39,53% slower)
ApacheDbUtilsTypical took 64ms (48,84% slower)
DbOomTypical took 72ms (67,44% slower)
JDBI took 113ms (162,79% slower)
MyBatis took 176ms (309,30% slower)
JOOQ took 218ms (406,98% slower)
SpringJdbcTemplate took 248ms (476,74% slower)
HibernateTypical took 334ms (676,74% slower)

Select Results

HandCoded took 35ms
Sql2oTypical took 41ms (17,14% slower)
DbOomOptimal took 45ms (28,57% slower)
Sql2oOptimized took 48ms (37,14% slower)
ApacheDbUtilsTypical took 57ms (62,86% slower)
DbOomTypical took 60ms (71,43% slower)
JDBI took 106ms (202,86% slower)
MyBatis took 138ms (294,29% slower)
JOOQ took 219ms (525,71% slower)
SpringJdbcTemplate took 247ms (605,71% slower)
HibernateTypical took 304ms (768,57% slower)

@igr
Copy link

igr commented Mar 11, 2018

wow that's not bad (for Jodd:) I am sure we can squeeze out some more speed, nice!

@mstempell
Copy link

Thanks for keeping up on this @moh-sushi
I was considering pushing it after another pull request of mine would be accepted or rejected, but that other one is still open.

@igr
Copy link

igr commented Aug 13, 2018

Update to Jodd v5 should give some performance...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants