We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f0e60e + 5a2d36b commit 24a053eCopy full SHA for 24a053e
test/openssl/test_ossl.rb
@@ -42,12 +42,6 @@ def test_secure_compare
42
end
43
44
def test_memcmp_timing
45
- begin
46
- require "benchmark"
47
- rescue LoadError
48
- pend "Benchmark is not available in this environment. Please install it with `gem install benchmark`."
49
- end
50
-
51
# Ensure using fixed_length_secure_compare takes almost exactly the same amount of time to compare two different strings.
52
# Regular string comparison will short-circuit on the first non-matching character, failing this test.
53
# NOTE: this test may be susceptible to noise if the system running the tests is otherwise under load.
0 commit comments