Make optional benchmark test in test_find_in_unresolved_tree_is_not_exponentiental
This commit is contained in:
parent
a780633d2a
commit
4e5b3e58e2
Notes:
git
2024-08-29 08:38:03 +00:00
@ -1,6 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "benchmark"
|
|
||||||
require_relative "helper"
|
require_relative "helper"
|
||||||
require "date"
|
require "date"
|
||||||
require "pathname"
|
require "pathname"
|
||||||
@ -146,6 +145,12 @@ end
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_find_in_unresolved_tree_is_not_exponentiental
|
def test_find_in_unresolved_tree_is_not_exponentiental
|
||||||
|
begin
|
||||||
|
require "benchmark"
|
||||||
|
rescue LoadError
|
||||||
|
pend "Benchmark is not available in this environment. Please install it with `gem install benchmark`."
|
||||||
|
end
|
||||||
|
|
||||||
pend "currently slower in CI on TruffleRuby" if RUBY_ENGINE == "truffleruby"
|
pend "currently slower in CI on TruffleRuby" if RUBY_ENGINE == "truffleruby"
|
||||||
num_of_pkg = 7
|
num_of_pkg = 7
|
||||||
num_of_version_per_pkg = 3
|
num_of_version_per_pkg = 3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user