Skip to content

Loading…

Benchmarks #48

Closed
jackquack opened this Issue · 4 comments

2 participants

@jackquack

In my production application, I ran some benchmarks to find the fastest JSON rendering engine. I'm using RABL to render.

I ran the same test, for 6 different templates (our most used ones), with each record from our DB, 10 times each.
I ran once for yajl and once for oj. I did not perform any configuration for either.
I rant the tests on a staging machine (same config as production), from a machine in the same EC2 zone.
Results were consistent when run multiple times.
Rails was running 3.2.9, Ruby 1.9.3, Apache.

I found that yajl was faster. I wasn't expecting it to be. Is this possible/reasonable in some circumstances (every app is different)? Is there anything I else I might have missed or might want to consider before moving ahead?

Thanks.

@ohler55
Owner
@ohler55
Owner

If you are interested in helping make Oj faster, please reopen the issue with some additional details.

@ohler55 ohler55 closed this
@jackquack

Sorry, I never got around to making an example that I could send. I'll get to it eventually, but until then, keep the issue closed. :) I'll wake it up when I get to it. And I will eventually get to it.

@ohler55
Owner

Okay, lets reopen when you get a chance to put together a public benchmark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.