vue2/benchmarks/ssr
码农小余 86fb6bd151
chore(benchmarks:ssr): createRenderer function path error (#12601)
2022-07-03 22:58:42 -04:00
..
README.md docs: fix spelling and grammatical errors (#9619) 2019-03-04 11:53:59 -05:00
common.js build: ship pre-minified versions of CommonJS build and server renderer 2018-12-12 12:24:41 -05:00
renderToStream.js chore(benchmarks:ssr): createRenderer function path error (#12601) 2022-07-03 22:58:42 -04:00
renderToString.js chore(benchmarks:ssr): createRenderer function path error (#12601) 2022-07-03 22:58:42 -04:00

README.md

Vue.js SSR benchmark

This benchmark renders a table of 1000 rows with 10 columns (10k components), with around 30k normal elements on the page. Note this is not something likely to be seen in a typical app. This benchmark is mostly for stress/regression testing and comparing between renderToString and renderToStream.

To view the results follow the run section. Note that the overall completion time for the results is variable, this is due to other system related variants at run time (available memory, processing power, etc). In ideal circumstances, both should finish within similar results.

renderToStream pipes the content through a stream which provides considerable performance benefits (faster time-to-first-byte and non-event-loop-blocking) over renderToString. This can be observed through the benchmark.

run

npm run bench:ssr