Skip to content

Instantly share code, notes, and snippets.

@nevir
Forked from shime/test_airbrake.rb
Created March 9, 2012 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nevir/2008011 to your computer and use it in GitHub Desktop.
Save nevir/2008011 to your computer and use it in GitHub Desktop.
test airbrake
t = Time.now; count = (1..100).select { Airbrake.notify(:error_class => "Testing success rate",:error_message => "Error Message") }.length; puts "success: #{count / 100.0}, avg time: #{(Time.now - t) / 100.0}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment