Change server load testing's script.
-require("net/simple_server")
+# Run: ab -n 10000 -c 100 http://localhost:3000/
+
+require "net/simple_server"
server = Net::SimpleServer.new("3000")
+i = 0
+
server.mount("/") do |req, res|
+ puts(i)
+ i = i+1
+
+ if i % 20 == 0
+ puts("===========Start Sleep=============")
+ sleep(1)
+ puts("-----------End Sleep-------------")
+ end
+
res.body = req.method + " Hello World"
res.status = 200
end
