Skip to content

Commit f2efd0a

Browse files
committed
Run validate_request in benchmark
1 parent f874daa commit f2efd0a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

benchmarks/large.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
require 'openapi_first'
55

66
Benchmark.memory do |x|
7-
x.report { OpenapiFirst.load('../spec/data/large.yaml') }
7+
x.report do
8+
oad = OpenapiFirst.load('../spec/data/large.yaml')
9+
request = Rack::Request.new(Rack::MockRequest.env_for('/workspaces'))
10+
oad.validate_request(request)
11+
end
812
end

0 commit comments

Comments
 (0)