Codecast: Create a RubyGem 32: Add a benchmark script part 2


This is the 32nd video in the NerdDice create a RubyGem series. In this video, Mike experiments with benchmarking in the console, stores results of the benchmarks in variables, and creates a hash to store the ratios for each benchmark.

This video covers:

  • 00:00:12 Introduction, review what we’ve done so far and goals for the final version of the script
  • 00:02:30 Experiment with benchmark interaction in the console
  • 00:05:01 Store baseline values in variables in the script
  • 00:12:40 Create method to compare result to baseline and throw error if comparison fails
  • 00:22:04 Create hash to keep allowable ratios for each benchmark and access from with method
, , , ,

Leave a Reply