Skip to content
Server-side Rendering Comparison
JavaScript HTML CSS Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
assets fix: inferno client demo Sep 17, 2019
benchmarks fix: delay in deferred callback Nov 21, 2019
controllers
mock refactor: upgrade rax & change style to class Sep 17, 2019
views fix: marko client demo Sep 17, 2019
.gitignore chore: modify scripts and readme Jan 14, 2017
README.md chore: update README Jan 15, 2020
app.js refactor: upgrade rax & change style to class Sep 17, 2019
marko.json fix: setting tag dir Mar 16, 2017
package.json
webpack.client.config.js refactor: upgrade rax & change style to class Sep 17, 2019
webpack.server.config.js refactor: upgrade rax & change style to class Sep 17, 2019

README.md

Server-side Rendering Comparison

Benchmark info

  • With NODE_ENV=production. renderToString both require from lib not dist.
  • With about 600 dom nodes.

Run

# prepare
npm install
npm run webpack

# run renderToString benchmark
npm run benchmark

Result

https://github.com/raxjs/server-side-rendering-comparison/commit/04fdfec8aa8626312ad3e2c0c6a57c6f735ad6de/checks?check_suite_id=401266841

React(16.12.0)#renderToString x 1,178 ops/sec ±1.23% (85 runs sampled)
Rax(1.1.1)#renderToString x 6,047 ops/sec ±1.73% (82 runs sampled)
Inferno(7.3.3)#renderToString x 3,335 ops/sec ±1.77% (82 runs sampled)
Preact(10.2.1)#renderToString x 1,005 ops/sec ±1.10% (86 runs sampled)
Marko(4.18.33)#renderToString x 10,291 ops/sec ±1.64% (86 runs sampled)
xtemplate(4.7.2)#render x 20,600 ops/sec ±2.89% (84 runs sampled)

The benchmark was run on:
   PLATFORM: linux 5.0.0-1027-azure
   CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
   SYSTEM MEMORY: 6.782737731933594GB
   NODE VERSION: v10.18.1
You can’t perform that action at this time.