Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created September 2, 2009 17:51
Show Gist options
  • Select an option

  • Save methodmissing/179853 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/179853 to your computer and use it in GitHub Desktop.
methodmissing:rb_aio_native lourens$ rake bench
(in /Users/lourens/projects/rb_aio_native)
/opt/local/ruby19/bin/ruby bench/read.rb
Rehearsal -------------------------------------------------------------
AIO.lio_listio(AIO::WAIT) 0.000000 0.000000 0.000000 ( 0.001029)
IO.read 0.000000 0.000000 0.000000 ( 0.000424)
---------------------------------------------------- total: 0.000000sec
user system total real
AIO.lio_listio(AIO::WAIT) 0.000000 0.000000 0.000000 ( 0.000024)
IO.read 0.000000 0.010000 0.010000 ( 0.000400)
Rehearsal ---------------------------------------------------------------
AIO.lio_listio(AIO::NOWAIT) 0.000000 0.000000 0.000000 ( 0.000047)
IO.read 0.000000 0.000000 0.000000 ( 0.001840)
------------------------------------------------------ total: 0.000000sec
user system total real
AIO.lio_listio(AIO::NOWAIT) 0.000000 0.000000 0.000000 ( 0.000066)
IO.read 0.000000 0.000000 0.000000 ( 0.000510)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment