Permalink
Commits on Mar 11, 2015
Commits on Mar 1, 2015
Commits on Jan 15, 2015
  1. Accept symbol as report's argument.

    JuanitoFatas committed Jan 15, 2015
    Now we could pass symbol to #report too.
    
    require 'benchmark/ips'
    
    data = [*0..100_000_000]
    
    Benchmark.ips do |x|
      x.report(:find)    { data.find    { |number| number > 77_777_777 } }
      x.report(:bsearch) { data.bsearch { |number| number > 77_777_777 } }
    end
Commits on Oct 25, 2014
  1. Remove lib/benchmark/helpers.rb from Manifest file.

    JuanitoFatas committed Oct 25, 2014
    This file has already been removed from JuanitoFatas@bc44856.
Commits on Jun 21, 2014
  1. Document Job and Report class attributes on where's declared.

    JuanitoFatas committed Jun 21, 2014
    > The most space efficient and maintainable way to document attributes is to
    > just document the attributes at the line they are declared. This also makes
    > your source code cleaner, because those attributes will be clearly called out.
  2. Fix Job & Report class instance variables incorrect documentations.

    JuanitoFatas committed Jun 21, 2014
    The problem is any comment that is one-line above attr_reader & attr_accessor
    will be considered as their document (via experiment).
    So `# class Benchmark::IPS::Job` & `# End of Entry` need to be removed.
    Or intentionlly put one more blank line. I think removal these is better.
    
    Currently there is no good way to document attr_accessor as I know of.
    
    On documenting attr_accessor please see:
    
    1) http://stackoverflow.com/questions/7583166/yard-document-custom-getter-setter-pair-like-attr-accessor
    2) lsegal/yard#516
    
    So I just use `@attr` for now.
    
    Thanks for the help by @lsegal from lsegal/yard#787.
Commits on Jun 20, 2014
  1. Update README.md (details below). [ci skip]

    JuanitoFatas committed Jun 20, 2014
    * Add badges: version, docs.
    * Update travis-ci's badge to use .svg.
    * Update repositroy link to https.
    * Add documentation link.
    * Add missing period.
    * Update calculation example result.
Commits on Jun 19, 2014
  1. Document Benchmark::IPS.

    JuanitoFatas committed Jun 19, 2014
Commits on May 23, 2014