Skip to content

Commit e443762

Browse files
committed
Update benchmarks
1 parent eeed14d commit e443762

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

benchmarks/Gemfile.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
openapi_first (2.11.1)
4+
openapi_first (3.0.0)
55
hana (~> 1.3)
66
json_schemer (>= 2.1, < 3.0)
77
openapi_parameters (>= 0.7.0, < 2.0)
@@ -11,12 +11,12 @@ GEM
1111
remote: https://rubygems.org/
1212
specs:
1313
base64 (0.3.0)
14-
benchmark (0.4.1)
14+
benchmark (0.5.0)
1515
benchmark-ips (2.14.0)
1616
benchmark-memory (0.2.0)
1717
memory_profiler (~> 1)
18-
bigdecimal (3.2.2)
19-
committee (5.5.5)
18+
bigdecimal (3.3.1)
19+
committee (5.6.1)
2020
json_schema (~> 0.14, >= 0.14.3)
2121
openapi_parser (~> 2.0)
2222
rack (>= 1.5)
@@ -31,36 +31,36 @@ GEM
3131
memory_profiler (1.1.0)
3232
mustermann (3.0.4)
3333
ruby2_keywords (~> 0.0.1)
34-
nio4r (2.7.4)
34+
nio4r (2.7.5)
3535
openapi_parameters (0.8.0)
3636
rack (>= 2.2)
37-
openapi_parser (2.2.6)
38-
optparse (0.6.0)
37+
openapi_parser (2.3.0)
38+
optparse (0.8.0)
3939
profile-viewer (0.0.5)
4040
optparse
4141
webrick
42-
puma (6.6.1)
42+
puma (7.1.0)
4343
nio4r (~> 2.0)
4444
rack (3.2.3)
45-
rack-protection (4.2.0)
45+
rack-protection (4.2.1)
4646
base64 (>= 0.1.0)
4747
logger (>= 1.6.0)
4848
rack (>= 3.0.0, < 4)
4949
rack-session (2.1.1)
5050
base64 (>= 0.1.0)
5151
rack (>= 3.0.0)
52-
regexp_parser (2.11.2)
52+
regexp_parser (2.11.3)
5353
ruby2_keywords (0.0.5)
5454
simpleidn (0.2.3)
55-
sinatra (4.2.0)
55+
sinatra (4.2.1)
5656
logger (>= 1.6.0)
5757
mustermann (~> 3.0)
5858
rack (>= 3.0.0, < 4)
59-
rack-protection (= 4.2.0)
59+
rack-protection (= 4.2.1)
6060
rack-session (>= 2.0.0, < 3)
6161
tilt (~> 2.0)
6262
tilt (2.6.1)
63-
vernier (1.8.0)
63+
vernier (1.8.1)
6464
webrick (1.9.1)
6565

6666
PLATFORMS

benchmarks/apps/openapi_first.ru

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ require 'json'
44
require 'openapi_first'
55
require_relative 'app'
66

7-
use OpenapiFirst::Middlewares::RequestValidation, spec: File.absolute_path('./openapi.yaml', __dir__)
7+
OpenapiFirst.register File.absolute_path('./openapi.yaml', __dir__)
8+
9+
use OpenapiFirst::Middlewares::RequestValidation
810
run App

benchmarks/apps/openapi_first_with_response_validation.ru

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ require 'json'
44
require 'openapi_first'
55
require_relative 'app'
66

7-
use OpenapiFirst::Middlewares::RequestValidation, spec: File.absolute_path('./openapi.yaml', __dir__)
8-
use OpenapiFirst::Middlewares::ResponseValidation, spec: File.absolute_path('./openapi.yaml', __dir__)
7+
OpenapiFirst.register File.absolute_path('./openapi.yaml', __dir__)
8+
9+
use OpenapiFirst::Middlewares::RequestValidation
10+
use OpenapiFirst::Middlewares::ResponseValidation
911

1012
run App

0 commit comments

Comments
 (0)