You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a more performant GraphQL visibility plugin. (#466)
We've observed that the new `GraphQL::Schema::Visibility` plugin causes a
large performance degradation. `GraphQL::Schema::Warden` does not have this
issue, so until it's fixed we'll stick with it.
```
ruby 3.3.4 (2024-07-09 revision be1089c8ec) [arm64-darwin23]
Warming up --------------------------------------
Using Visibility 10.000 i/100ms
Using Warden 248.000 i/100ms
Calculating -------------------------------------
Using Visibility 102.340 (± 2.0%) i/s (9.77 ms/i) - 520.000 in 5.082553s
Using Warden 2.471k (± 4.9%) i/s (404.71 μs/i) - 12.400k in 5.030776s
Comparison:
Using Warden: 2470.9 i/s
Using Visibility: 102.3 i/s - 24.14x slower
```
See rmosolgo/graphql-ruby#5324 for details on this issue.
0 commit comments