graphql-jit 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -11
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# GraphQL JIT
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[
|
|
4
|
+
[](https://codecov.io/gh/zalando-incubator/graphql-jit)
|
|
5
5
|
|
|
6
6
|
### Why?
|
|
7
7
|
|
|
@@ -10,21 +10,22 @@ code which yields much better performance. `graphql-jit` leverages this behaviou
|
|
|
10
10
|
|
|
11
11
|
#### Benchmarks
|
|
12
12
|
|
|
13
|
+
GraphQL-JS 16 on Node 16.13.0
|
|
13
14
|
```bash
|
|
14
15
|
$ yarn benchmark skip-json
|
|
15
16
|
Starting introspection
|
|
16
|
-
graphql-js x 1,
|
|
17
|
-
graphql-jit x
|
|
17
|
+
graphql-js x 1,941 ops/sec ±2.50% (225 runs sampled)
|
|
18
|
+
graphql-jit x 6,158 ops/sec ±2.38% (222 runs sampled)
|
|
18
19
|
Starting fewResolvers
|
|
19
|
-
graphql-js x
|
|
20
|
-
graphql-jit x
|
|
20
|
+
graphql-js x 26,620 ops/sec ±2.41% (225 runs sampled)
|
|
21
|
+
graphql-jit x 339,223 ops/sec ±2.94% (215 runs sampled)
|
|
21
22
|
Starting manyResolvers
|
|
22
|
-
graphql-js x
|
|
23
|
-
graphql-jit x
|
|
23
|
+
graphql-js x 16,415 ops/sec ±2.36% (220 runs sampled)
|
|
24
|
+
graphql-jit x 178,331 ops/sec ±2.73% (221 runs sampled)
|
|
24
25
|
Starting nestedArrays
|
|
25
|
-
graphql-js x
|
|
26
|
-
graphql-jit x 1,
|
|
27
|
-
Done in 141.
|
|
26
|
+
graphql-js x 127 ops/sec ±1.43% (220 runs sampled)
|
|
27
|
+
graphql-jit x 1,316 ops/sec ±2.58% (219 runs sampled)
|
|
28
|
+
Done in 141.25s.
|
|
28
29
|
```
|
|
29
30
|
|
|
30
31
|
### Support for GraphQL spec
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphql-jit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "GraphQL JIT Compiler to JS",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"coverageThreshold": {
|
|
41
41
|
"global": {
|
|
42
|
-
"branches":
|
|
42
|
+
"branches": 92,
|
|
43
43
|
"functions": 96,
|
|
44
44
|
"lines": 96,
|
|
45
45
|
"statements": 96
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@stryker-mutator/jest-runner": "^2.0.0",
|
|
56
56
|
"@stryker-mutator/typescript": "^2.0.0",
|
|
57
57
|
"@types/benchmark": "^1.0.31",
|
|
58
|
-
"@types/jest": "^
|
|
58
|
+
"@types/jest": "^27.0.3",
|
|
59
59
|
"@types/json-schema": "^7.0.1",
|
|
60
60
|
"@types/lodash.memoize": "^4.1.6",
|
|
61
61
|
"@types/lodash.merge": "^4.6.6",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"eslint-plugin-node": "^11.1.0",
|
|
73
73
|
"eslint-plugin-promise": "^5.1.1",
|
|
74
74
|
"eslint-plugin-standard": "^5.0.0",
|
|
75
|
-
|
|
76
|
-
"jest": "^
|
|
75
|
+
"graphql": "^16.0.0",
|
|
76
|
+
"jest": "^27.4.3",
|
|
77
77
|
"lint-staged": "^8.1.5",
|
|
78
78
|
"prettier": "^2.4.1",
|
|
79
|
-
"ts-jest": "^
|
|
79
|
+
"ts-jest": "^27.0.7",
|
|
80
80
|
"ts-node": "^8.0.3",
|
|
81
81
|
"typescript": "^4.4.4"
|
|
82
82
|
},
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@graphql-typed-document-node/core": "3.1.0",
|
|
85
85
|
"fast-json-stringify": "^1.13.0",
|
|
86
86
|
"generate-function": "^2.3.1",
|
|
87
|
-
"json-schema": "^0.
|
|
87
|
+
"json-schema": "^0.4.0",
|
|
88
88
|
"lodash.memoize": "^4.1.2",
|
|
89
89
|
"lodash.merge": "4.6.2",
|
|
90
90
|
"lodash.mergewith": "4.6.2"
|