graphql-jit:使用JIT编译器执行GraphQL

时间:2021-05-06 21:29:50
【文件属性】:
文件名称:graphql-jit:使用JIT编译器执行GraphQL
文件大小:180KB
文件格式:ZIP
更新时间:2021-05-06 21:29:50
TypeScript 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
【文件预览】:
graphql-jit-master
----MAINTAINERS(145B)
----package.json(3KB)
----tslint.json(294B)
----.github()
--------workflows()
----.zappr.yaml(214B)
----SECURITY.md(606B)
----LICENSE(1KB)
----CONTRIBUTING.md(3KB)
----src()
--------variables.ts(14KB)
--------__benchmarks__()
--------__tests__()
--------memoize.ts(2KB)
--------json.ts(5KB)
--------non-null.ts(8KB)
--------types.ts(167B)
--------ast.ts(27KB)
--------inspect.ts(3KB)
--------execution.ts(46KB)
--------index.ts(249B)
--------resolve-info.ts(9KB)
--------error.ts(2KB)
----tsconfig.json(649B)
----examples()
--------blog-apollo-server()
--------blog()
----.gitignore(34B)
----CODE_OF_CONDUCT.md(3KB)
----types()
--------generate-function.d.ts(36B)
--------fast-json-stringify.d.ts(38B)
----README.md(4KB)
----yarn.lock(197KB)
----.editorconfig(164B)
----stryker.conf.js(346B)

网友评论