jugglingdb icon indicating copy to clipboard operation
jugglingdb copied to clipboard

No performance data is available

Open tolgaek opened this issue 12 years ago • 9 comments

I'm trying to decide between sequelize and juggling db but I can't find to seem any performance data about jugglingdb. This makes deciding on whether to use this or not very difficult

tolgaek avatar Jun 23 '13 22:06 tolgaek

Honestly, I don't think performance should be the key lens for looking at an ORM. Sequelize is certainly more popular, and seems to have gained many of the features that made me decide not to use it originally.

Shrugs

That said, if you do a comparison, please share.

dgsan avatar Jun 25 '13 16:06 dgsan

performance issues with the code, while important, is meaningless, since it's entirely dependent on the database backend performance. testing the performance using a mocked database is just as useful and testing performance reassignment in for loops and finding out that one way works at 77.000.000 ops/sec and the other 72.000.000 ops/sec, while 5.000.000 seem a lot, hardly even you'll do this on a real world scenario.

pocesar avatar Jun 26 '13 01:06 pocesar

A while ago I practiced benchmark driven development and optimized js based on memory usage / cpu usage graphs under benchmark function. All slow crap was removed and classes usage was rewritten. But I never compared with other ORMs because it doesn't make any sense for me - I only compare with pure driver to minimize overhead added by jugglingdb. And I agree - that comparison could be useful for others, so if you want to compare I would recommend you to use to write simple benchmark and draw graphs using R.

On Wed, Jun 26, 2013 at 5:54 AM, Paulo Cesar [email protected]:

performance issues with the code, while important, is meaningless, since it's entirely dependent on the database backend performance. testing the performance using a mocked database is just as useful and testing performance reassignment in for loops and finding out that one way works at 77.000.000 ops/sec and the other 72.000.000 ops/sec, while 5.000.000 seem a lot, hardly even you'll do this on a real world scenario.

— Reply to this email directly or view it on GitHubhttps://github.com/1602/jugglingdb/issues/298#issuecomment-20022780 .

anatoliychakkaev avatar Jun 26 '13 08:06 anatoliychakkaev

I'm looking at creating a script for generating test results for jugglingdb, node-orm, and sequelize.. I think it might be useful in the future for any others who are simply curious about the numbers. Obviously I know that the numbers for orm versus no-orm don't tell you much but the performance differences between two ORMs might come in very handy

tolgaek avatar Jun 28 '13 19:06 tolgaek

If you're going to do it, I'd curious about bookshelf (site, github), also.

dgsan avatar Jun 28 '13 20:06 dgsan

Hey guys, I took this project; https://github.com/sequelize/sequelize-performance

Added support for juggling and brought all the other ORMs up to date.. How should I post this code? Or should I just put the results I have?

tolgaek avatar Jul 02 '13 14:07 tolgaek

Maybe just submit pull request?

On Tue, Jul 2, 2013 at 6:30 PM, tolgaek [email protected] wrote:

Hey guys, I took this project; https://github.com/sequelize/sequelize-performance

Added support for juggling and brought all the other ORMs up to date.. How should I post this code? Or should I just put the results I have?

— Reply to this email directly or view it on GitHubhttps://github.com/1602/jugglingdb/issues/298#issuecomment-20348823 .

Thanks, Anatoliy Chakkaev

anatoliychakkaev avatar Jul 09 '13 05:07 anatoliychakkaev

well, doing some tests, the major overhead of jugglingdb right now is the use of Function.bind as I created an issue in here #356. The problem lies with the V8 engine and not jugglingdb perse. when I wrote about the 5 million ops/sec difference, is actually a lot more when using Function.bind, and in a really busy server, it does make a difference.

pocesar avatar Jan 12 '14 17:01 pocesar

I'm doing a similar thing here. These are just dumb insertion test, I'm not checking relations or other things. Just "overhead added on node-mysql" :)

If you have suggestion on things I can stress please let me know.

nomadster avatar Feb 28 '14 11:02 nomadster