From 25f850254644ef71657d6b996bb38011b9676909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Deng=20=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Wed, 7 Aug 2024 03:51:40 +0800 Subject: [PATCH] workflow: add quick benchmark (#266) --- benchmark/.gitignore | 1 + .../src/bench => benchmark/client}/App.vue | 10 +- .../src/bench => benchmark/client}/data.ts | 0 benchmark/client/index.html | 17 + benchmark/client/index.ts | 5 + benchmark/client/profiling.ts | 79 ++++ benchmark/client/vapor.ts | 4 + benchmark/client/vdom.ts | 4 + benchmark/index.js | 340 ++++++++++++++++++ benchmark/package.json | 19 + benchmark/tsconfig.json | 26 ++ eslint.config.js | 1 + playground/setup/dev.js | 4 +- playground/src/bench/profiling.ts | 60 ---- pnpm-lock.yaml | 243 +++++++++++-- pnpm-workspace.yaml | 1 + scripts/inline-enums.js | 4 +- scripts/release.js | 11 +- scripts/utils.js | 21 +- 19 files changed, 747 insertions(+), 103 deletions(-) create mode 100644 benchmark/.gitignore rename {playground/src/bench => benchmark/client}/App.vue (90%) rename {playground/src/bench => benchmark/client}/data.ts (100%) create mode 100644 benchmark/client/index.html create mode 100644 benchmark/client/index.ts create mode 100644 benchmark/client/profiling.ts create mode 100644 benchmark/client/vapor.ts create mode 100644 benchmark/client/vdom.ts create mode 100644 benchmark/index.js create mode 100644 benchmark/package.json create mode 100644 benchmark/tsconfig.json delete mode 100644 playground/src/bench/profiling.ts diff --git a/benchmark/.gitignore b/benchmark/.gitignore new file mode 100644 index 000000000..484ab7e5c --- /dev/null +++ b/benchmark/.gitignore @@ -0,0 +1 @@ +results/* diff --git a/playground/src/bench/App.vue b/benchmark/client/App.vue similarity index 90% rename from playground/src/bench/App.vue rename to benchmark/client/App.vue index a67ef8754..5b16e9547 100644 --- a/playground/src/bench/App.vue +++ b/benchmark/client/App.vue @@ -1,8 +1,10 @@ -