We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f477dd9 commit 6ee7e27Copy full SHA for 6ee7e27
2 files changed
benchmarks/apps/large.ru
@@ -0,0 +1,10 @@
1
+# frozen_string_literal: true
2
+
3
+require 'json'
4
+require 'openapi_first'
5
+require_relative 'app'
6
7
+OpenapiFirst.register File.absolute_path('../../spec/data/large.yaml', __dir__)
8
9
+use OpenapiFirst::Middlewares::RequestValidation
10
+run App
benchmarks/large.rb
@@ -0,0 +1,8 @@
+require 'benchmark/memory'
+Benchmark.memory do |x|
+ x.report { OpenapiFirst.load('../spec/data/large.yaml') }
+end
0 commit comments