From: Trans Date: 2012-02-07T10:59:18+09:00 Subject: [ruby-core:42384] require vs require_relative benchmarks I recently benchmarked require vs require_relative, and I was surprised to see no noticeable difference between the two. This doesn't make a whole lot of sense to me since relative require shouldn't have to look anything up via RubyGems or the $LOAD_PATH, so there should be some appreciable difference, even if relatively small. So what am I missing? Is the implementation not optimized? Or is there something that has to happen behind the scenes that voids any load time gain? Or were my benchmarks anomalous for some reason? Note: My benchmarks were simple timing how long it takes to load the test-unit library, which has approx 20 or so files to load, vs the same library with all the requires changed to relative requires. Both averaged around 0.075 seconds.