GraphQL JIT
为什么?
GraphQL-JS是最新GraphQL规范的写得很好的运行时实现。 但是,通过编译为JS,V8能够创建优化的代码,从而产生更好的性能。 graphql-jit通过将查询编译为函数来显着提高性能, graphql-jit充分利用了V8优化的这种行为(请参见下面的)
基准测试
$ yarn benchmark skip-json
Starting introspection
graphql-js x 1,155 ops/sec ±1.55% (215 runs sampled)
graphql-jit x 5,961 ops/sec ±5.34% (216 runs sampled)
Starting fewResolvers
graphql-js x 14,313 ops/sec ±1.43% (224 runs sampled)
graphql-jit
评论0
最新资源