RubyGems Navigation menu

benchmarker 0.1.0

Benchmarker is a small utility for benchmarking. Quick Example (ex0.rb): require 'rubygems' require 'benchmarker' Benchmarker.new(:width=>20, :loop=>100*1000, :cycle=>5, :extra=>1) do |bm| range = 1..1000 bm.task("each") do arr = [] range.each {|n| arr << n } end bm.task("collect") do arr = range.collect {|n| n } end bm.task("inject") do arr = range.inject([]) {|a, n| a << n; a } end end

Versions:

  1. 0.1.0 - March 02, 2011 (23 ko)

Propriétaires:

Auteurs:

  • makoto kuwata

Total de contrôle SHA 256:

f7fe6de1d6af35a952fb63899b15b00bce507ca94f860d71f0fd611ccb98e490

Total de téléchargements 3 900

Pour cette version 3 900

Gemfile:
= Copier Copié!

installation:
=

Licences:

aucune

Version de Ruby requise: None

Liens: