Skip to content

Instantly share code, notes, and snippets.

@sgonyea
Created November 10, 2010 04:36
Show Gist options
  • Save sgonyea/670362 to your computer and use it in GitHub Desktop.
Save sgonyea/670362 to your computer and use it in GitHub Desktop.
# 1 iteration
sgonyea@skg:~/Sites/streamly_ffi/benchmark$ ruby basic_request.rb "http://www.google.com/"
Rehearsal ------------------------------------
StreamlyFFI
0.000000 0.010000 0.010000 ( 0.235719)
Streamly
0.010000 0.000000 0.010000 ( 0.210793)
`curl`
0.000000 0.000000 0.000000 ( 0.180098)
rest-client
0.000000 0.000000 0.000000 ( 0.158341)
--------------------------- total: 0.020000sec
user system total real
StreamlyFFI
0.000000 0.000000 0.000000 ( 0.165192)
Streamly
0.000000 0.000000 0.000000 ( 0.229999)
`curl`
0.000000 0.000000 0.000000 ( 0.184338)
rest-client
0.000000 0.010000 0.010000 ( 0.148269)
sgonyea@skg:~/Sites/streamly_ffi/benchmark$ ruby basic_request.rb "http://www.google.com/"
Rehearsal ------------------------------------
StreamlyFFI
0.000000 0.000000 0.000000 ( 0.245952)
Streamly
0.010000 0.010000 0.020000 ( 0.177950)
`curl`
0.000000 0.000000 0.000000 ( 0.201080)
rest-client
0.000000 0.000000 0.000000 ( 0.185452)
--------------------------- total: 0.020000sec
user system total real
StreamlyFFI
0.010000 0.010000 0.020000 ( 0.211071)
Streamly
0.000000 0.000000 0.000000 ( 0.252333)
`curl`
0.000000 0.000000 0.000000 ( 0.234929)
rest-client
0.000000 0.000000 0.000000 ( 0.209837)
sgonyea@skg:~/Sites/streamly_ffi/benchmark$ ruby basic_request.rb "http://www.google.com/"
Rehearsal ------------------------------------
StreamlyFFI
0.000000 0.000000 0.000000 ( 0.342978)
Streamly
0.000000 0.010000 0.010000 ( 0.294858)
`curl`
0.000000 0.000000 0.000000 ( 0.229349)
rest-client
0.000000 0.000000 0.000000 ( 0.238718)
--------------------------- total: 0.010000sec
user system total real
StreamlyFFI
0.000000 0.000000 0.000000 ( 0.297083)
Streamly
0.010000 0.000000 0.010000 ( 0.316213)
`curl`
0.000000 0.000000 0.000000 ( 0.221629)
rest-client
0.010000 0.010000 0.020000 ( 0.222159)
sgonyea@skg:~/Sites/streamly_ffi/benchmark$
# 100 Iterations
sgonyea@skg:~/Sites/streamly_ffi/benchmark$ ruby basic_request.rb "http://www.google.com/" 100
Rehearsal ------------------------------------
StreamlyFFI
0.110000 0.130000 0.240000 ( 17.318167)
Streamly
0.110000 0.120000 0.230000 ( 18.113635)
`curl`
0.030000 0.280000 1.210000 ( 15.871935)
rest-client
0.300000 0.110000 0.410000 ( 15.292378)
--------------------------- total: 2.090000sec
user system total real
StreamlyFFI
0.100000 0.120000 0.220000 ( 17.006554)
Streamly
0.090000 0.110000 0.200000 ( 16.745191)
`curl`
0.040000 0.290000 1.190000 ( 15.792892)
rest-client
0.270000 0.100000 0.370000 ( 16.247245)
# Features CURB!!
# 10 iterations
sgonyea@skg:~/Sites/streamly_ffi/benchmark$ ruby basic_request.rb "http://www.google.com/" 10
Rehearsal ------------------------------------
StreamlyFFI
0.010000 0.010000 0.020000 ( 1.657344)
Streamly
0.010000 0.010000 0.020000 ( 1.563524)
Curb
0.000000 0.010000 0.010000 ( 1.648558)
`curl`
0.000000 0.030000 0.110000 ( 1.568475)
rest-client
0.040000 0.020000 0.060000 ( 1.541167)
--------------------------- total: 0.220000sec
user system total real
StreamlyFFI
0.010000 0.010000 0.020000 ( 1.642372)
Streamly
0.010000 0.010000 0.020000 ( 1.631220)
Curb
0.010000 0.020000 0.030000 ( 2.094890)
`curl`
0.010000 0.020000 0.120000 ( 1.517415)
rest-client
0.030000 0.010000 0.040000 ( 1.410035)
sgonyea@skg:~/Sites/streamly_ffi/benchmark$ ruby basic_request.rb "http://www.google.com/" 10
Rehearsal ------------------------------------
StreamlyFFI
0.010000 0.010000 0.020000 ( 1.246930)
Streamly
0.010000 0.010000 0.020000 ( 1.275593)
Curb
0.010000 0.010000 0.020000 ( 1.148783)
`curl`
0.000000 0.030000 0.110000 ( 1.015289)
rest-client
0.040000 0.010000 0.050000 ( 1.081233)
--------------------------- total: 0.220000sec
user system total real
StreamlyFFI
0.010000 0.010000 0.020000 ( 1.130840)
Streamly
0.000000 0.010000 0.010000 ( 1.164407)
Curb
0.010000 0.010000 0.020000 ( 1.434350)
`curl`
0.000000 0.020000 0.090000 ( 1.346172)
rest-client
0.020000 0.010000 0.030000 ( 0.943119)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment