<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://bridgetownrb.com/" version="2.2.2">Bridgetown</generator><link href="https://peterboling.com/feed/require_bench.xml" rel="self" type="application/atom+xml" /><link href="https://peterboling.com/" rel="alternate" type="text/html" /><updated>2026-11-15T23:03:36+00:00</updated><id>https://peterboling.com/feed/require_bench.xml</id><title type="html">Peter Boling | Require_bench</title><subtitle>Yet Another Paradigm by Peter Boling, featuring technical blog posts about Ruby, JavaScript, TypeScript, Go, Python, DevOps, and various open source projects. Ramblings, mumblings, cv/resume, technical blog, and documentation for many popular, and unpopular, RubyGems and other FLOSS projects, including oauth2, omniauth-identity, sanitize_email, debug_logging, flag_shih_tzu, gem_bench, etc. Semi-lifely state-of-the-petris updates.</subtitle><author><name>Peter Boling</name><email>floss@galtzo.com</email></author><entry><title type="html">require_bench v1.0.4 released!</title><link href="https://peterboling.com/require_bench/require_bench-v1.0.4-released!/" rel="alternate" type="text/html" title="require_bench v1.0.4 released!" /><published>2025-06-01T01:01:54+00:00</published><updated>2025-06-01T01:01:54+00:00</updated><id>https://peterboling.com/require_bench/require_bench-v1.0.4-released!/</id><content type="html" xml:base="https://peterboling.com/require_bench/require_bench-v1.0.4-released!/">&lt;h2 id=&quot;whats-changed&quot;&gt;What’s Changed&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Update colorize 0.8.1 → 1.1.0 (major) by @depfu in https://github.com/pboling/require_bench/pull/13&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Full Changelog&lt;/strong&gt;: https://github.com/pboling/require_bench/compare/v1.0.3…v1.0.4&lt;/p&gt;</content><category term="release" /><category term="require_bench" /><category term="v1.0.4" /></entry><entry><title type="html">RequireBench: When do you use it?</title><link href="https://peterboling.com/require_bench/requirebench-when-do-you-use-it/" rel="alternate" type="text/html" title="RequireBench: When do you use it?" /><published>2023-04-15T06:39:00+00:00</published><updated>2023-04-15T06:39:00+00:00</updated><id>https://peterboling.com/require_bench/requirebench-when-do-you-use-it/</id><content type="html" xml:base="https://peterboling.com/require_bench/requirebench-when-do-you-use-it/">&lt;h2 id=&quot;requirebench-when-do-you-use-it&quot;&gt;RequireBench: When do you use it?&lt;/h2&gt;

&lt;p&gt;Upgrading an old application, I encountered the following code.&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Uncomment the following monkey patch to debug &quot;SystemStackError: stack level too deep&quot; during boot up&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;module&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;Kernel&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;require_and_print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;nb&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;string&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;require_original&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;

  &lt;span class=&quot;kp&quot;&gt;alias_method&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:require_original&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:require&lt;/span&gt;
  &lt;span class=&quot;kp&quot;&gt;alias_method&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:require_and_print&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is what &lt;code class=&quot;highlighter-rouge&quot;&gt;require_bench&lt;/code&gt; was written for.  You don’t need to add hacks like this to your code anymore!&lt;/p&gt;

&lt;p&gt;OK, but why is the gem better than the hack?&lt;/p&gt;

&lt;p&gt;I’m glad you asked!  Here are the top 5 reason.  I could list more, but I think these suffice.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;100% test coverage (line and branch).&lt;/li&gt;
  &lt;li&gt;100% test coverage.&lt;/li&gt;
  &lt;li&gt;100% test coverage.&lt;/li&gt;
  &lt;li&gt;100% test coverage.&lt;/li&gt;
  &lt;li&gt;100% test coverage.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Check it out!  Oh, that reminds me.&lt;/p&gt;

&lt;p&gt;This is my latest project to adopt my new &lt;a href=&quot;https://railsbling.com/posts/dvcs/put_the_d_in_dvcs/&quot;&gt;D-in-DVCS paradigm&lt;/a&gt;, so check &lt;em&gt;that&lt;/em&gt; out!&lt;/p&gt;

&lt;h2 id=&quot;-dvcs&quot;&gt;🛞 DVCS&lt;/h2&gt;

&lt;p&gt;This project does not trust any one version control hosting provider,
so it abides the principles of &lt;a href=&quot;https://railsbling.com/posts/dvcs/put_the_d_in_dvcs/&quot;&gt;“Distributed Version Control Systems”&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Find this project on:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Any&lt;/th&gt;
      &lt;th&gt;Of&lt;/th&gt;
      &lt;th&gt;These&lt;/th&gt;
      &lt;th&gt;DVCSs&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href=&quot;https://github.com/pboling/require_bench&quot;&gt;🐙hub&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://codeberg.org/pboling/require_bench&quot;&gt;🧊berg&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://git.sr.ht/~galtzo/require_bench&quot;&gt;🛖hut&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://gitlab.com/pboling/require_bench&quot;&gt;🧪lab&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;</content><category term="development" /><category term="ruby" /><category term="rails" /><category term="rubygems" /><category term="require_bench" /><category term="benchmarking" /></entry><entry><title type="html">Introducing require_bench</title><link href="https://peterboling.com/require_bench/introducing-require_bench/" rel="alternate" type="text/html" title="Introducing require_bench" /><published>2018-09-21T18:00:00+00:00</published><updated>2018-09-21T18:00:00+00:00</updated><id>https://peterboling.com/require_bench/introducing-require_bench/</id><content type="html" xml:base="https://peterboling.com/require_bench/introducing-require_bench/">&lt;h2 id=&quot;ruby-bootstrapping-analysis&quot;&gt;Ruby Bootstrapping Analysis&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/pboling/require_bench&quot;&gt;&lt;img src=&quot;https://img.shields.io/gem/rt/require_bench.svg&quot; alt=&quot;Total Downloads&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/pboling/require_bench&quot;&gt;&lt;img src=&quot;https://img.shields.io/gem/rd/require_bench.svg&quot; alt=&quot;Downloads Today&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/pboling/require_bench/network&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/forks/pboling/require_bench.svg?style=social&quot; alt=&quot;Network&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/pboling/require_bench/stargazers&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/stars/pboling/require_bench.svg?style=social&quot; alt=&quot;Stars&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://rubygems.org/gems/require_bench&quot;&gt;&lt;img src=&quot;https://img.shields.io/gem/v/require_bench.svg&quot; alt=&quot;Version&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://travis-ci.org/pboling/require_bench&quot;&gt;&lt;img src=&quot;https://img.shields.io/travis/pboling/require_bench.svg&quot; alt=&quot;Build&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://codeclimate.com/github/pboling/require_bench/maintainability&quot;&gt;&lt;img src=&quot;https://api.codeclimate.com/v1/badges/18523205c207a2b53045/maintainability&quot; alt=&quot;Maintainability&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://codeclimate.com/github/pboling/require_bench/test_coverage&quot;&gt;&lt;img src=&quot;https://api.codeclimate.com/v1/badges/18523205c207a2b53045/test_coverage&quot; alt=&quot;Test Coverage&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://depfu.com/github/pboling/require_bench?project_id=5824&quot;&gt;&lt;img src=&quot;https://badges.depfu.com/badges/247bffc753b0cd49d3c08ce03b5c251c/count.svg&quot; alt=&quot;Depfu&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.codetriage.com/pboling/require_bench&quot;&gt;&lt;img src=&quot;https://www.codetriage.com/pboling/require_bench/badges/users.svg&quot; alt=&quot;Open Source Helpers&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://gitter.im/pboling/require_bench&quot;&gt;&lt;img src=&quot;https://img.shields.io/gitter/room/pboling/require_bench.svg&quot; alt=&quot;Chat&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://opensource.org/licenses/MIT&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/License-MIT-green.svg&quot; alt=&quot;License: MIT&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ruby app loading slowly, or never?&lt;/p&gt;

&lt;p&gt;Discover bootstrapping issues in Ruby by benchmarking “Kernel.require”&lt;/p&gt;

&lt;h2 id=&quot;installation&quot;&gt;Installation&lt;/h2&gt;

&lt;p&gt;Add this line to your application’s Gemfile:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;require_bench&apos;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And then execute:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ bundle
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Or install it yourself as:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ gem install require_bench
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;usage&quot;&gt;Usage&lt;/h2&gt;

&lt;p&gt;Require the library where it will be loaded prior to any other requires you want to benchmark.&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;require_bench&apos;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;By default this gem does &lt;strong&gt;nothing&lt;/strong&gt;, hacks &lt;strong&gt;nothing&lt;/strong&gt;, and has &lt;strong&gt;zero&lt;/strong&gt; effects.&lt;/p&gt;

&lt;h3 id=&quot;turn-on-benchmarking--output&quot;&gt;Turn on benchmarking &amp;amp; output&lt;/h3&gt;

&lt;p&gt;Add an environment variable, however you normally do such things, so that in Ruby:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;no&quot;&gt;ENV&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;REQUIRE_BENCH&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;true&apos;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Any value other than &lt;code class=&quot;highlighter-rouge&quot;&gt;&apos;true&apos;&lt;/code&gt; means RubyBench is still turned off.&lt;/p&gt;

&lt;h3 id=&quot;handy-rake-task-for-rails&quot;&gt;Handy Rake Task for Rails:&lt;/h3&gt;

&lt;p&gt;Require in Rakefile, as follows:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  &lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;bundler/setup&apos;&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;require_bench/tasks&apos;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# Near the top, just below require &apos;bundler/setup&apos;!&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This will ensure it will load before other stuff.&lt;/p&gt;

&lt;p&gt;When running from command line, you will see output as the Rails app boots.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;∴ &lt;span class=&quot;nv&quot;&gt;REQUIRE_BENCH&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;true &lt;/span&gt;bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;rake require_bench:hello
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]  12.179703 /path/to/my_app/config/application
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.001726 resque/tasks
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000917 resque/scheduler/tasks
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000011 rake
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000014 active_record
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.008673 sprockets/rails/task
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000012 dynamoid
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000004 dynamoid/tasks/database
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000012 raven/integrations/tasks
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.003107 rspec/core/rake_task
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000017 csv
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000012 resque/tasks
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000007 resque/scheduler/tasks
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.064950 rails/tasks
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.003305 rake/testtask
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.001886 rubocop/rake_task
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   0.000012 hubspot-ruby
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench]   2.291259 /path/to/my_app/config/environment.rb

&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;RequireBench] Slowest Loads by Library, &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;order
 1.  11.914224 /path/to/my_app/config/application
 2.   2.153282 /path/to/my_app/config/environment.rb
 3.   0.061008 rails
 4.   0.010827 sprockets
 5.   0.003179 rspec
 6.   0.003144 rake
 7.   0.003127 resque
 8.   0.001543 rubocop
 9.   0.000021 dynamoid
10.   0.000016 csv
11.   0.000016 active_record
12.   0.000010 raven
13.   0.000005 hubspot-ruby
&lt;span class=&quot;o&quot;&gt;==========&lt;/span&gt;
 14.150402 TOTAL
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;output-options&quot;&gt;Output Options&lt;/h3&gt;

&lt;p&gt;If the output is too noisy from deep libraries you can add a regex to skip benchmarking of files that match.&lt;/p&gt;

&lt;p&gt;If the value is set in the shell, it should be a string.  RequireBench will split the string by comma, Regexp escape each value, and join together with pipe (&lt;code class=&quot;highlighter-rouge&quot;&gt;|&lt;/code&gt;) to form the regex pattern.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;REQUIRE_BENCH_SKIP_PATTERN&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;activesupport,rspec
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If the &lt;code class=&quot;highlighter-rouge&quot;&gt;ENV[&apos;REQUIRE_BENCH_SKIP_PATTERN&apos;]&lt;/code&gt; value is set in Ruby, it can be one of:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;a string, to be split by comma, each Regexp escaped, then joined by pipe (&lt;code class=&quot;highlighter-rouge&quot;&gt;|&lt;/code&gt;)&lt;/li&gt;
  &lt;li&gt;an array of strings, each to be Regexp escaped, then joined by pipe (&lt;code class=&quot;highlighter-rouge&quot;&gt;|&lt;/code&gt;)&lt;/li&gt;
  &lt;li&gt;a Regexp object, which will be used as is.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;no&quot;&gt;ENV&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;REQUIRE_BENCH_SKIP_PATTERN&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;activesupport,rspec&apos;&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# or&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;ENV&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;REQUIRE_BENCH_SKIP_PATTERN&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;activesupport&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;rspec&apos;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# or&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;ENV&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;REQUIRE_BENCH_SKIP_PATTERN&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Regexp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;activesupport|rspec&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Any file being required that matches the pattern will use the standard, rather than the benchmarked, require.&lt;/p&gt;

&lt;h4 id=&quot;fully-qualified-paths&quot;&gt;Fully qualified paths&lt;/h4&gt;

&lt;p&gt;Fully qualified paths, or any portion thereof, are fine, because the strings are always Regexp escaped.&lt;/p&gt;</content><category term="development" /><category term="ruby" /><category term="rails" /><category term="rubygems" /><category term="require_bench" /><category term="benchmarking" /></entry></feed>