Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Benchmark
/
//opt/alt/ruby21/share/ri/2.1.0/system/Benchmark/bm-c.ri
U:RDoc::AnyMethod[iI"bm:EFI"Benchmark::bm;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KA simple interface to the #benchmark method, #bm generates sequential ;TI"Greports with labels. The parameters have the same meaning as for ;TI"#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;F[ I"(label_width = 0, *labels);T@$FI"Benchmark;FcRDoc::NormalModule00