Closed zsilbi closed 3 months ago
I'm unable to reproduce this disparity.
After the consistency fixes Vue already fared better than all the others except fastify-html.
Thanks for the quick reply @galvez
This problem is reproducable in this version https://github.com/platformatic/ssr-performance-showdown/commit/41b704b8d07d4d8b29b1fba1fdb3575b41dce17b of the benchmark, I tested on two machines.
I see — it doesn't seem to reproducible in its current state. I'll verify carefully later.
Prerequisites
Issue
Hello!
This is a follow up on the performance problem that I experienced when running the Vue benchmark in https://github.com/platformatic/ssr-performance-showdown
I noticed the poor performance of the Vue renderer in the original version of the benchmark suite when I saw the first results.
Then I ran the benchmark myself and got similar results. (120-140 req/s)
In this pull request I removed the
<style>
block from the Vue component and the results were immediately got much better. (330-340 req/s)Later I tested the original version multiple times and noticed that the results are not consistent. See this comment
Then I recreated the same benchmark using another library and could not reproduce the problem. See this comment
Today I had time to run the original benchmark on a slower computer and found out that the problem is there regardless of the presence of
<style>
block. I also copied the test component to the vue-next example of this repository and the results were exactly the same.First run:
Immediate second run in the same process:
Immediate second run with concurrent 200 connections:
After this a single curl request takes around 5-6 seconds.
If I wait a few seconds between runs the average is similar in both runs (around 140 rps).