Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created July 11, 2009 00:23
Show Gist options
  • Select an option

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

Select an option

Save methodmissing/144928 to your computer and use it in GitHub Desktop.
macbook-pros-computer:callback lourens$ rake bench
(in /Users/lourens/projects/callback)
/opt/local/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.3/lib/rake.rb:992: warning: Insecure world writable dir /Users/lourens in PATH, mode 040753
Rehearsal ---------------------------------------------------------------------------------
Callback{ 'hai' }.call 0.010000 0.000000 0.010000 ( 0.018309)
RubyCallback{ 'hai' }.call 0.030000 0.000000 0.030000 ( 0.025148)
Callback( 'bai', :to_s ).call 0.000000 0.000000 0.000000 ( 0.007654)
RubyCallback( 'bai', :to_s ).call 0.020000 0.000000 0.020000 ( 0.014259)
Callback( 'bai', :gsub ).call( 'b', 'h' ) 0.040000 0.000000 0.040000 ( 0.041170)
RubyCallback( 'bai', :gsub ).call( 'b', 'h' ) 0.060000 0.000000 0.060000 ( 0.061157)
------------------------------------------------------------------------ total: 0.160000sec
user system total real
Callback{ 'hai' }.call 0.020000 0.000000 0.020000 ( 0.016297)
RubyCallback{ 'hai' }.call 0.020000 0.000000 0.020000 ( 0.022569)
Callback( 'bai', :to_s ).call 0.010000 0.000000 0.010000 ( 0.007140)
RubyCallback( 'bai', :to_s ).call 0.010000 0.000000 0.010000 ( 0.010976)
Callback( 'bai', :gsub ).call( 'b', 'h' ) 0.040000 0.000000 0.040000 ( 0.045195)
RubyCallback( 'bai', :gsub ).call( 'b', 'h' ) 0.060000 0.000000 0.060000 ( 0.059826)
# Calling
Rehearsal ---------------------------------------------
methback: 0.020000 0.000000 0.020000 ( 0.028521)
lambdabk: 0.040000 0.000000 0.040000 ( 0.042405)
callback: 0.060000 0.000000 0.060000 ( 0.056396)
callbak2: 0.030000 0.000000 0.030000 ( 0.033701)
rubyback: 0.070000 0.000000 0.070000 ( 0.068894)
farm: 0.030000 0.000000 0.030000 ( 0.034313)
------------------------------------ total: 0.250000sec
user system total real
methback: 0.030000 0.000000 0.030000 ( 0.026882)
lambdabk: 0.040000 0.000000 0.040000 ( 0.042617)
callback: 0.060000 0.000000 0.060000 ( 0.055798)
callbak2: 0.030000 0.000000 0.030000 ( 0.034498)
rubyback: 0.070000 0.000000 0.070000 ( 0.067633)
farm: 0.030000 0.000000 0.030000 ( 0.034012)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment