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
/
MiniTest
/
Unit
/
TestCase
/
//opt/alt/ruby21/share/ri/2.1.0/system/MiniTest/Unit/TestCase/assert_performance_constant-i.ri
U:RDoc::AnyMethod[iI" assert_performance_constant:EFI"9MiniTest::Unit::TestCase#assert_performance_constant;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FRuns the given +work+ and asserts that the times gathered fit to ;TI"Bmatch a constant rate (eg, linear slope == 0) within a given ;TI"D+threshold+. Note: because we're testing for a slope of 0, R^2 ;TI"Dis not a good determining factor for the fit, so the threshold ;TI"Eis applied against the slope itself. As such, you probably want ;TI"$to tighten it from the default.;To:RDoc::Markup::BlankLine o; ; [I"BSee http://www.graphpad.com/curvefit/goodness_of_fit.htm for ;TI"more details.;T@o; ; [I"&Fit is calculated by #fit_linear.;T@o; ; [I"+Ranges are specified by ::bench_range.;T@o; ; [I"Eg:;T@o:RDoc::Markup::Verbatim; [ I"def bench_algorithm ;TI"1 assert_performance_constant 0.9999 do |n| ;TI" @obj.algorithm(n) ;TI" end ;TI"end;T:@format0: @fileI"lib/minitest/benchmark.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(threshold = 0.99, &work);T@(FI" TestCase;TcRDoc::NormalClass00