Last active
November 11, 2015 07:28
-
-
Save xxuejie/ab6ec03a17d14b942e77 to your computer and use it in GitHub Desktop.
Revisions
-
xxuejie revised this gist
Nov 11, 2015 . 2 changed files with 33 additions and 34 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,45 +1,44 @@ $ # testing syro $ wrk -t12 -c400 -d30s http://127.0.0.1:9292/foo/bar Running 30s test @ http://127.0.0.1:9292/foo/bar 12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 186.63ms 75.95ms 712.69ms 71.36% Req/Sec 58.40 66.78 280.00 79.20% 16025 requests in 30.09s, 2.81MB read Socket errors: connect 0, read 310, write 0, timeout 0 Requests/sec: 532.63 Transfer/sec: 95.71KB $ # testing kemal $ wrk -t12 -c400 -d30s http://127.0.0.1:3000/foo/bar Running 30s test @ http://127.0.0.1:3000/foo/bar 12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 15.37ms 2.05ms 44.65ms 84.56% Req/Sec 2.13k 191.52 4.98k 83.25% 764741 requests in 30.08s, 72.20MB read Socket errors: connect 0, read 222, write 0, timeout 0 Requests/sec: 25424.94 Transfer/sec: 2.40MB $ # syro again $ wrk -t12 -c400 -d30s http://127.0.0.1:9292/admin Running 30s test @ http://127.0.0.1:9292/admin 12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 189.23ms 121.90ms 1.97s 87.29% Req/Sec 53.05 55.98 400.00 85.25% 15980 requests in 30.10s, 2.79MB read Socket errors: connect 0, read 513, write 0, timeout 0 Requests/sec: 530.84 Transfer/sec: 94.87KB $ # kemal again $ wrk -t12 -c400 -d30s http://127.0.0.1:3000/admin Running 30s test @ http://127.0.0.1:3000/admin 12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 18.21ms 9.56ms 162.06ms 95.01% Req/Sec 1.90k 329.47 3.42k 79.34% 682250 requests in 30.08s, 63.76MB read Socket errors: connect 0, read 92, write 0, timeout 0 Requests/sec: 22681.34 Transfer/sec: 2.12MB This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,6 @@ get "/foo/bar" do "hello world" end get "/admin" do "for admins" end -
xxuejie renamed this gist
Nov 11, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
xxuejie created this gist
Nov 11, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ $ # testing syro $ wrk -t12 -c400 -d30s http://localhost:9292/foo/bar Running 30s test @ http://localhost:9292/foo/bar 12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 167.40ms 82.15ms 1.91s 79.52% Req/Sec 103.17 77.63 420.00 61.45% 17668 requests in 30.09s, 3.10MB read Socket errors: connect 0, read 439, write 14, timeout 19 Requests/sec: 587.24 Transfer/sec: 105.52KB $ # testing kemal $ wrk -t12 -c400 -d30s http://localhost:3000/foo/bar Running 30s test @ http://localhost:3000/foo/bar 12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 16.06ms 1.37ms 33.33ms 90.16% Req/Sec 2.05k 169.30 8.65k 89.86% 733524 requests in 30.08s, 69.25MB read Socket errors: connect 0, read 227, write 12, timeout 0 Requests/sec: 24386.78 Transfer/sec: 2.30MB $ # syro again $ wrk -t12 -c400 -d30s http://localhost:9292/admin Running 30s test @ http://localhost:9292/admin 12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 172.86ms 66.40ms 585.74ms 71.93% Req/Sec 95.39 76.58 400.00 53.70% 17331 requests in 30.10s, 3.02MB read Socket errors: connect 0, read 35, write 1, timeout 0 Requests/sec: 575.85 Transfer/sec: 102.92KB $ # kemal again $ wrk -t12 -c400 -d30s http://localhost:3000/admin Running 30s test @ http://localhost:3000/admin 12 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 16.37ms 1.47ms 45.96ms 89.55% Req/Sec 2.02k 107.11 2.34k 80.94% 723533 requests in 30.05s, 71.76MB read Socket errors: connect 0, read 202, write 0, timeout 0 Non-2xx or 3xx responses: 723533 Requests/sec: 24079.76 Transfer/sec: 2.39MB This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ require "kemal" get "/foo/bar" do "hello world" end get "admin" do "for admins" end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ # Started with a plain rackup require "syro" Admin = Syro.new { get { res.write("for admins") } } App = Syro.new { on("foo/bar") { get { res.write("hello world") } } on("admin") { run(Admin) } }