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

Make benchmark app async #3

Merged
merged 3 commits into from Jun 19, 2014

Conversation

rmg
Copy link
Contributor

@rmg rmg commented Jun 19, 2014

The current benchmark is written as a single blocking loop. Real apps (the kind that use loggers, at least) don't work this way. Their log messages will be spread out across multiple ticks of the event loop because they will be triggered by requests and other events.

This PR changes the main loop in the benchmark to be a simple async loop using setImmediate so that it is slightly more realistic. It turns out the blocking loop heavily favoured ln while penalizing the other loggers.

@wood1986 wood1986 merged commit d910a5c into wood1986:master Jun 19, 2014
@rmg rmg deleted the async-benchmarks branch June 19, 2014 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants