contra/graphql-helix

[Question] Have you thought about graphql-jit?

JaLe29 opened this issue · 2 comments

I don't know much about graphql engines, but I've read that graphql-jit is faster than graphql-js.

https://github.com/zalando-incubator/graphql-jit

What about some support for graphql-jit?

From graphql-jit documentation:

$ yarn benchmark skip-json
Starting introspection
graphql-js x 1,941 ops/sec ±2.50% (225 runs sampled)
graphql-jit x 6,158 ops/sec ±2.38% (222 runs sampled)
Starting fewResolvers
graphql-js x 26,620 ops/sec ±2.41% (225 runs sampled)
graphql-jit x 339,223 ops/sec ±2.94% (215 runs sampled)
Starting manyResolvers
graphql-js x 16,415 ops/sec ±2.36% (220 runs sampled)
graphql-jit x 178,331 ops/sec ±2.73% (221 runs sampled)
Starting nestedArrays
graphql-js x 127 ops/sec ±1.43% (220 runs sampled)
graphql-jit x 1,316 ops/sec ±2.58% (219 runs sampled)
Done in 141.25s.

Hey @JaLe29, helix does not stop you from using graphql-jit ;)

Also, you might wanna check out https://www.graphql-yoga.com/, where you can use graphql-jit as a plugin 😇 https://www.envelop.dev/plugins/use-graphql-jit