diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-12-21 00:27:41 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-12-21 00:27:41 -0800 |
commit | 63be9508b745b094aa0226bb57062547e9cf8fb9 (patch) | |
tree | 265ac83193e9a63d65d3698d620d226fb6c7f67b /lib/ffi_yajl/benchmark/parse_profile.rb | |
parent | dd0232bf6107e64321a36da3348ab8cc8e5046dd (diff) | |
download | ffi-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.rb | 2 |
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 |