eknkc / ssr-benchmark

Benchmarking JS web framework SSR performance
739 stars 173 forks source link

Try Angular or AnalogJS ( Meta Framework of Angular) #27

Open SkyZeroZx opened 2 weeks ago

JoniJnm commented 1 week ago

I tried, but angular platform-server needs https://github.com/angular/domino, that overwrites some native clases like Event, and this is not compatible with tinybench & node.

There is also some incompatibility issues with Zone.js and remix.

With some hacks in node_modules, and disabling prerender, in mi local machine it's:

┌─────────┬──────────────┬─────────┬──────────────┬─────────┬───────────┬─────────────┬───────────────────────┐
│ (index) │ name         │ ops/sec │ average (ms) │ samples │ body (kb) │ duplication │ relative to sveltekit │
├─────────┼──────────────┼─────────┼──────────────┼─────────┼───────────┼─────────────┼───────────────────────┤
│ 0       │ 'sveltekit'  │ 659     │ '1.517'      │ 6593    │ '184.46'  │ 'x2.00'     │ ''                    │
│ 1       │ 'nuxt'       │ 317     │ '3.151'      │ 3175    │ '201.05'  │ 'x2.00'     │ '2.08 x slower'       │
│ 2       │ 'react'      │ 218     │ '4.574'      │ 2187    │ '97.28'   │ 'x1.00'     │ '3.02 x slower'       │
│ 3       │ 'angular'    │ 85      │ '11.659'     │ 858     │ '97.24'   │ 'x1.00'     │ '7.75 x slower'       │
│ 4       │ 'next-pages' │ 76      │ '13.026'     │ 768     │ '187.67'  │ 'x2.00'     │ '8.67 x slower'       │
│ 5       │ 'astro'      │ 71      │ '13.922'     │ 719     │ '99.91'   │ 'x1.00'     │ '9.28 x slower'       │
│ 6       │ 'mfng'       │ 66      │ '15.065'     │ 664     │ '317.31'  │ 'x2.50'     │ '9.98 x slower'       │
│ 7       │ 'next'       │ 54      │ '18.504'     │ 541     │ '284.64'  │ 'x2.00'     │ '12.20 x slower'      │
└─────────┴──────────────┴─────────┴──────────────┴─────────┴───────────┴─────────────┴───────────────────────┘