hello sports racers

evn: o i wrote benchmark/unit

evn: https://evanweaver.files.wordpress.com/2010/12/doc/fauna/benchmark_unit/

defunkt: blog post or it didnt happen

Hey, so, benchmark_unit. Machine-independent benchmark assertions for your unit tests:

$ ruby parser_test.rb
Loaded suite parser_test
Started
F
Finished in 4.253302 seconds.

  1) Failure:
test_parsing_speed(ParserTest) [parser_test.rb:7]:
<2.04597701149425 RubySeconds> is not faster than 1.5 RubySeconds.

1 tests, 1 assertions, 1 failures, 0 errors

One response