vuejs / vue-vapor

Vue Vapor is a variant of Vue that offers rendering without the Virtual DOM.
https://vapor-repl.netlify.app
MIT License
1.94k stars 94 forks source link

perf: improve benchmark test code #268

Closed LittleSound closed 1 month ago

LittleSound commented 2 months ago

To better for the performance of Vue Vapor, improve the benchmark test code based on the architectural features of Vapor.

I have synchronized these changes to JS Framework Benchmark repo. In https://github.com/krausest/js-framework-benchmark/pull/1729

netlify[bot] commented 2 months ago

Deploy Preview for vapor-repl ready!

Name Link
Latest commit f25b249878c77163e7731eb1a1333ae585309bf9
Latest deploy log https://app.netlify.com/sites/vapor-repl/deploys/66c3113d19efcb0008fcef37
Deploy Preview https://deploy-preview-268--vapor-repl.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 2 months ago

Deploy Preview for vapor-template-explorer ready!

Name Link
Latest commit f25b249878c77163e7731eb1a1333ae585309bf9
Latest deploy log https://app.netlify.com/sites/vapor-template-explorer/deploys/66c3113decd44400081ff4a1
Deploy Preview https://deploy-preview-268--vapor-template-explorer.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

github-actions[bot] commented 2 months ago

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 80.6 kB 28.4 kB 25 kB
compiler-vapor.global.prod.js 56.9 kB 19.4 kB 17.6 kB
runtime-dom.global.prod.js 99.3 kB 37.6 kB 33.8 kB
runtime-vapor.global.prod.js 48.6 kB 18.3 kB 16.7 kB
vue-vapor.global.prod.js 103 kB 36.2 kB 32.5 kB
vue.global.prod.js 157 kB 57.4 kB 51 kB

Usages

Name Size Gzip Brotli
createApp 55.2 kB 21.3 kB 19.4 kB
createSSRApp 59.1 kB 22.9 kB 20.9 kB
defineCustomElement 59.8 kB 22.8 kB 20.8 kB
vapor 49.2 kB 18.5 kB 16.9 kB
overall 68.8 kB 26.3 kB 23.9 kB
pkg-pr-new[bot] commented 2 months ago

commit: f25b249

@vue/compiler-core

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-core@268 ```

@vue/compiler-dom

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-dom@268 ```

@vue/compiler-sfc

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-sfc@268 ```

@vue/compiler-ssr

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-ssr@268 ```

@vue/compiler-vapor

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-vapor@268 ```

@vue/reactivity

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/reactivity@268 ```

@vue/runtime-core

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-core@268 ```

@vue/runtime-dom

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-dom@268 ```

@vue/runtime-shared

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-shared@268 ```

@vue/runtime-vapor

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-vapor@268 ```

@vue/server-renderer

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/server-renderer@268 ```

@vue/shared

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/shared@268 ```

vue

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/vue@268 ```

@vue/compat

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compat@268 ```

@vue/vapor

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/vapor@268 ```

Open in Stackblitzplayground