Open History to see the last commit
1{
2 "name": "@benchmarks/memory-client",
3 "private": true,
4 "type": "module",
5 "scripts": {
6 "clean:profiles": "rm -rf scenarios/*/*/.profiles"
7 },
8 "imports": {
9 "#memory-client/benchmark": "./benchmark.ts",
10 "#memory-client/bench-utils": "./bench-utils.ts",
11 "#memory-client/flame-runner": "./flame-runner.ts",
12 "#memory-client/lifecycle": "./lifecycle.ts"
13 },
14 "dependencies": {
15 "@tanstack/react-router": "workspace:*",
16 "@tanstack/router-core": "workspace:*",
17 "@tanstack/solid-router": "workspace:*",
18 "@tanstack/vue-router": "workspace:*",
19 "react": "^19.0.0",
20 "react-dom": "^19.0.0",
21 "solid-js": "^1.9.10",
22 "vue": "^3.5.16"
23 },
24 "devDependencies": {
25 "@codspeed/vitest-plugin": "^5.5.0",
26 "@datadog/pprof": "^5.13.2",
27 "@platformatic/flame": "^1.6.0",
28 "@testing-library/react": "^16.2.0",
29 "@vitejs/plugin-react": "^6.0.1",
30 "@vitejs/plugin-vue": "^6.0.5",
31 "@vitejs/plugin-vue-jsx": "^5.1.5",
32 "@types/jsdom": "28.0.0",
33 "@types/react": "catalog:",
34 "@types/react-dom": "catalog:",
35 "jsdom": "29.1.1",
36 "@typescript/native": "npm:typescript@^7.0.2",
37 "typescript": "npm:@typescript/typescript6@^6.0.2",
38 "vite": "^8.0.14",
39 "vite-plugin-solid": "^2.11.11",
40 "vitest": "catalog:"
41 },
42 "nx": {
43 "targets": {
44 "build:react": {
45 "executor": "nx:noop",
46 "cache": false,
47 "dependsOn": [
48 {
49 "projects": [
50 "@benchmarks/memory-client-navigation-churn-react",
51 "@benchmarks/memory-client-unique-location-churn-react",
52 "@benchmarks/memory-client-preload-churn-react",
53 "@benchmarks/memory-client-loader-data-retention-react",
54 "@benchmarks/memory-client-mount-unmount-react",
55 "@benchmarks/memory-client-interrupted-navigations-react"
56 ],
57 "target": "build:client"
58 }
59 ]
60 },
61 "build:solid": {
62 "executor": "nx:noop",
63 "cache": false,
64 "dependsOn": [
65 {
66 "projects": [
67 "@benchmarks/memory-client-navigation-churn-solid",
68 "@benchmarks/memory-client-unique-location-churn-solid",
69 "@benchmarks/memory-client-preload-churn-solid",
70 "@benchmarks/memory-client-loader-data-retention-solid",
71 "@benchmarks/memory-client-mount-unmount-solid",
72 "@benchmarks/memory-client-interrupted-navigations-solid"
73 ],
74 "target": "build:client"
75 }
76 ]
77 },
78 "build:vue": {
79 "executor": "nx:noop",
80 "cache": false,
81 "dependsOn": [
82 {
83 "projects": [
84 "@benchmarks/memory-client-navigation-churn-vue",
85 "@benchmarks/memory-client-unique-location-churn-vue",
86 "@benchmarks/memory-client-preload-churn-vue",
87 "@benchmarks/memory-client-loader-data-retention-vue",
88 "@benchmarks/memory-client-mount-unmount-vue",
89 "@benchmarks/memory-client-interrupted-navigations-vue"
90 ],
91 "target": "build:client"
92 }
93 ]
94 },
95 "build:react:flame": {
96 "executor": "nx:noop",
97 "cache": false,
98 "dependsOn": [
99 {
100 "projects": [
101 "@benchmarks/memory-client-navigation-churn-react",
102 "@benchmarks/memory-client-unique-location-churn-react",
103 "@benchmarks/memory-client-preload-churn-react",
104 "@benchmarks/memory-client-loader-data-retention-react",
105 "@benchmarks/memory-client-mount-unmount-react",
106 "@benchmarks/memory-client-interrupted-navigations-react"
107 ],
108 "target": "build:client:flame"
109 }
110 ]
111 },
112 "build:solid:flame": {
113 "executor": "nx:noop",
114 "cache": false,
115 "dependsOn": [
116 {
117 "projects": [
118 "@benchmarks/memory-client-navigation-churn-solid",
119 "@benchmarks/memory-client-unique-location-churn-solid",
120 "@benchmarks/memory-client-preload-churn-solid",
121 "@benchmarks/memory-client-loader-data-retention-solid",
122 "@benchmarks/memory-client-mount-unmount-solid",
123 "@benchmarks/memory-client-interrupted-navigations-solid"
124 ],
125 "target": "build:client:flame"
126 }
127 ]
128 },
129 "build:vue:flame": {
130 "executor": "nx:noop",
131 "cache": false,
132 "dependsOn": [
133 {
134 "projects": [
135 "@benchmarks/memory-client-navigation-churn-vue",
136 "@benchmarks/memory-client-unique-location-churn-vue",
137 "@benchmarks/memory-client-preload-churn-vue",
138 "@benchmarks/memory-client-loader-data-retention-vue",
139 "@benchmarks/memory-client-mount-unmount-vue",
140 "@benchmarks/memory-client-interrupted-navigations-vue"
141 ],
142 "target": "build:client:flame"
143 }
144 ]
145 },
146 "test:flame:react": {
147 "executor": "nx:noop",
148 "cache": false,
149 "dependsOn": [
150 {
151 "projects": [
152 "@benchmarks/memory-client-navigation-churn-react",
153 "@benchmarks/memory-client-unique-location-churn-react",
154 "@benchmarks/memory-client-preload-churn-react",
155 "@benchmarks/memory-client-loader-data-retention-react",
156 "@benchmarks/memory-client-mount-unmount-react",
157 "@benchmarks/memory-client-interrupted-navigations-react"
158 ],
159 "target": "test:flame"
160 }
161 ]
162 },
163 "test:flame:solid": {
164 "executor": "nx:noop",
165 "cache": false,
166 "dependsOn": [
167 {
168 "projects": [
169 "@benchmarks/memory-client-navigation-churn-solid",
170 "@benchmarks/memory-client-unique-location-churn-solid",
171 "@benchmarks/memory-client-preload-churn-solid",
172 "@benchmarks/memory-client-loader-data-retention-solid",
173 "@benchmarks/memory-client-mount-unmount-solid",
174 "@benchmarks/memory-client-interrupted-navigations-solid"
175 ],
176 "target": "test:flame"
177 }
178 ]
179 },
180 "test:flame:vue": {
181 "executor": "nx:noop",
182 "cache": false,
183 "dependsOn": [
184 {
185 "projects": [
186 "@benchmarks/memory-client-navigation-churn-vue",
187 "@benchmarks/memory-client-unique-location-churn-vue",
188 "@benchmarks/memory-client-preload-churn-vue",
189 "@benchmarks/memory-client-loader-data-retention-vue",
190 "@benchmarks/memory-client-mount-unmount-vue",
191 "@benchmarks/memory-client-interrupted-navigations-vue"
192 ],
193 "target": "test:flame"
194 }
195 ]
196 },
197 "test:perf:react": {
198 "executor": "nx:run-commands",
199 "parallelism": false,
200 "cache": false,
201 "dependsOn": [
202 "build:react"
203 ],
204 "options": {
205 "command": "NODE_ENV=production vitest bench --config ./vitest.react.config.ts",
206 "cwd": "benchmarks/memory/client"
207 }
208 },
209 "test:perf:solid": {
210 "executor": "nx:run-commands",
211 "parallelism": false,
212 "cache": false,
213 "dependsOn": [
214 "build:solid"
215 ],
216 "options": {
217 "command": "NODE_ENV=production vitest bench --config ./vitest.solid.config.ts",
218 "cwd": "benchmarks/memory/client"
219 }
220 },
221 "test:perf:vue": {
222 "executor": "nx:run-commands",
223 "parallelism": false,
224 "cache": false,
225 "dependsOn": [
226 "build:vue"
227 ],
228 "options": {
229 "command": "NODE_ENV=production vitest bench --config ./vitest.vue.config.ts",
230 "cwd": "benchmarks/memory/client"
231 }
232 },
233 "test:types": {
234 "executor": "nx:run-commands",
235 "dependsOn": [
236 {
237 "projects": [
238 "@benchmarks/memory-client-navigation-churn-react",
239 "@benchmarks/memory-client-unique-location-churn-react",
240 "@benchmarks/memory-client-preload-churn-react",
241 "@benchmarks/memory-client-loader-data-retention-react",
242 "@benchmarks/memory-client-mount-unmount-react",
243 "@benchmarks/memory-client-interrupted-navigations-react",
244 "@benchmarks/memory-client-navigation-churn-solid",
245 "@benchmarks/memory-client-unique-location-churn-solid",
246 "@benchmarks/memory-client-preload-churn-solid",
247 "@benchmarks/memory-client-loader-data-retention-solid",
248 "@benchmarks/memory-client-mount-unmount-solid",
249 "@benchmarks/memory-client-interrupted-navigations-solid",
250 "@benchmarks/memory-client-navigation-churn-vue",
251 "@benchmarks/memory-client-unique-location-churn-vue",
252 "@benchmarks/memory-client-preload-churn-vue",
253 "@benchmarks/memory-client-loader-data-retention-vue",
254 "@benchmarks/memory-client-mount-unmount-vue",
255 "@benchmarks/memory-client-interrupted-navigations-vue"
256 ],
257 "target": "test:types:client"
258 }
259 ],
260 "options": {
261 "command": "tsc -p ./tsconfig.json --noEmit",
262 "cwd": "benchmarks/memory/client"
263 },
264 "inputs": [
265 "default",
266 "^production",
267 "{workspaceRoot}/eslint.config.js",
268 "dependentTaskOutputs",
269 "{workspaceRoot}/benchmarks/memory/*.ts"
270 ]
271 }
272 }
273 }
274}