File: C:/Ruby27-x64/share/ri/2.7.0/system/Benchmark/bm-c.ri
U:RDoc::AnyMethod[iI"bm:ETI"Benchmark::bm;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KA simple interface to the #benchmark method, #bm generates sequential ;TI"Nreports with labels. +label_width+ and +labels+ parameters have the same ;TI"meaning as for #benchmark.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I"require 'benchmark'
;TI"
;TI"n = 5000000
;TI"Benchmark.bm(7) do |x|
;TI": x.report("for:") { for i in 1..n; a = "1"; end }
;TI": x.report("times:") { n.times do ; a = "1"; end }
;TI": x.report("upto:") { 1.upto(n) do ; a = "1"; end }
;TI" end
;T:@format0o;
; [I"Generates:;T@o;; [ I": user system total real
;TI";for: 0.960000 0.000000 0.960000 ( 0.957966)
;TI";times: 0.960000 0.000000 0.960000 ( 0.960423)
;TI":upto: 0.950000 0.000000 0.950000 ( 0.954864);T;
0:
@fileI"lib/benchmark.rb;T:0@omit_headings_from_table_of_contents_below00I"report;T[ I"(label_width = 0, *labels);T@$FI"Benchmark;TcRDoc::NormalModule00