mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 12:07:39 +08:00
4618914ceb
- Includes `renderToStream` and `renderToString` - Added SSR benchmark README.md - Added npm `bench:ssr` script - Renders table with 1000 rows with 10 columns (10 thousand components) |
||
---|---|---|
.. | ||
common.js | ||
README.md | ||
renderToStream.js | ||
renderToString.js |
Vue.js SSR benchmark
This benchmark renders a table of 1000 rows with 10 columns (10 thousand components). This benchmark is to demonstrate the overall speeds of Vue.js SSR and time to content comparison between renderToString
and renderToStream
.
To view the results follow the run section. Note that the overall completion time for the results are variable, this is due to other system related variants at run time (available memory, processing ect). In ideal circumstances both should finish within equal times.
renderToStream
pipes the content through a stream which gives massive performance benefits over renderToString. This can be observed through the benchmark.
run
npm run bench:ssr