Skip to content

Instantly share code, notes, and snippets.

@altherlex
Created May 3, 2015 05:20
Show Gist options
  • Save altherlex/0540d28a0da225874719 to your computer and use it in GitHub Desktop.
Save altherlex/0540d28a0da225874719 to your computer and use it in GitHub Desktop.
Nodejs benchmark
# Testing Scaling
require 'benchmark'
n = 10000
result = Benchmark.bm do |x|
x.report { for i in 1..n; Thread.new {`curl -XGET http://localhost:3000`}; end }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment