Sha256: 66ec1efdb6d54a8cdda26b5e74dd3e06edd1eb08b8c01f3c458f8351ec0748a9

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

require 'passrock'
require 'benchmark'
require 'dotenv'

Dotenv.load

PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '../'))

passrock_db = Passrock::PasswordDb.new(ENV['PASSROCK_PASSWORD_DB'], ENV['PASSROCK_PRIVATE_KEY'])

Benchmark.bm do |x|
  x.report("#find_by_binary_search\n") { puts "Password secure? #{passrock_db.secure?('password')}" }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
passrock-0.0.5 benchmark/binary_search_test.rb
passrock-0.0.4 benchmark/binary_search_test.rb