summaryrefslogtreecommitdiff
path: root/lib/ffi_yajl/benchmark/parse_profile.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-12-21 00:27:41 -0800
committerTim Smith <tsmith84@gmail.com>2019-12-21 00:27:41 -0800
commit63be9508b745b094aa0226bb57062547e9cf8fb9 (patch)
tree265ac83193e9a63d65d3698d620d226fb6c7f67b /lib/ffi_yajl/benchmark/parse_profile.rb
parentdd0232bf6107e64321a36da3348ab8cc8e5046dd (diff)
downloadffi-yajl-63be9508b745b094aa0226bb57062547e9cf8fb9.tar.gz
Substitute require for require_relativerelative
require_relative is significantly faster and should be used when available. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/ffi_yajl/benchmark/parse_profile.rb')
-rw-r--r--lib/ffi_yajl/benchmark/parse_profile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi_yajl/benchmark/parse_profile.rb b/lib/ffi_yajl/benchmark/parse_profile.rb
index 4b396b4..cccb6db 100644
--- a/lib/ffi_yajl/benchmark/parse_profile.rb
+++ b/lib/ffi_yajl/benchmark/parse_profile.rb
@@ -2,7 +2,7 @@
# See MIT-LICENSE
require "rubygems"
-require "ffi_yajl"
+require_relative "../../ffi_yajl"
begin
require "perftools"
rescue LoadError