ssr-benchmark
ssr-benchmark copied to clipboard
add vanilla.js
┌─────────┬──────────────┬─────────┬──────────────┬─────────┬───────────┬─────────────┬─────────────────────┐
│ (index) │ name │ ops/sec │ average (ms) │ samples │ body (kb) │ duplication │ relative to vanilla │
├─────────┼──────────────┼─────────┼──────────────┼─────────┼───────────┼─────────────┼─────────────────────┤
│ 0 │ 'vanilla' │ 7630 │ '0.131' │ 76310 │ '123.25' │ 'x1.00' │ '' │
│ 1 │ 'react' │ 987 │ '1.013' │ 9875 │ '97.28' │ 'x1.00' │ '7.73 x slower' │
│ 2 │ 'sveltekit' │ 779 │ '1.283' │ 7797 │ '184.46' │ 'x2.00' │ '9.79 x slower' │
│ 3 │ 'solid' │ 767 │ '1.303' │ 7676 │ '215.93' │ 'x2.00' │ '9.95 x slower' │
│ 4 │ 'remix' │ 587 │ '1.701' │ 5880 │ '189.10' │ 'x2.00' │ '13.00 x slower' │
│ 5 │ 'vue' │ 378 │ '2.644' │ 3783 │ '96.72' │ 'x1.00' │ '20.19 x slower' │
│ 6 │ 'nuxt' │ 365 │ '2.737' │ 3655 │ '97.57' │ 'x1.00' │ '20.90 x slower' │
│ 7 │ 'next-pages' │ 147 │ '6.777' │ 1476 │ '187.67' │ 'x2.00' │ '51.90 x slower' │
│ 8 │ 'mfng' │ 76 │ '13.145' │ 761 │ '317.31' │ 'x2.50' │ '100.39 x slower' │
│ 9 │ 'next' │ 63 │ '15.829' │ 632 │ '284.64' │ 'x2.00' │ '121.11 x slower' │
└─────────┴──────────────┴─────────┴──────────────┴─────────┴───────────┴─────────────┴─────────────────────┘
I think the purpose of this benchmark is to compare SSR implementations with Suspense. I know this can be a good baseline but somehow a async/suspense logic should be added before this can be actually compared to others...
This should be added as a baseline. Frameworks adding overhead is not vanilla js's fault.
Thank you @b3nten !! idk what's wrong with this PR.