From 1f99f8a83ca3582399ea402745905e810f9ac1bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=9E=9C?= Date: Sat, 14 Jan 2017 23:48:24 +0800 Subject: [PATCH 1/5] docs: update ssr data --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 30f56cf07e..70521556fd 100644 --- a/README.md +++ b/README.md @@ -44,14 +44,17 @@ Rax is a universal JavaScript library with a largely React-compatible API. If yo ## Server-side Rendering Comparison -> [Benchmark repository](https://github.com/taobaofed/server-side-rendering-comparison): Run on a MacBook Air Intel Core i5 @1.4 GHz x 2 with 8 GB memory. -| Library | renderToString (per second) | -|--------------|-----------------------------| -| React@15.3.2 | 297 op/s | -| Vue@2.0.8 | 1092 op/s | -| Rax@0.0.2 | 1553 op/s (fastest) | +> [Benchmark repository](https://github.com/taobaofed/server-side-rendering-comparison): Run on a MacBook Air Intel Core i5 @1.4 GHz x 2 with 8 GB memory with Node.js v6.9.2. +|Library\Version|renderToSring | QPS [#/sec] | +|--------------|-----------------|-------------| +| React@15.4.2 | 152.73ms | 444.10 | +| Rax@0.1.2 | 89.70ms | 513.54 | +| Vue@2.1.8 | 100.06ms | 599.58 | + +- renderToSring: Independent process serial execution 10 times, each process parallel rendering 100 times, without cache. +- QPS: `ab -n1000 -c50 url`, without cache ## Quick Start From eb1a2f082a029e6f0af89e47c0e9db8c83095e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=9E=9C?= Date: Mon, 16 Jan 2017 14:35:00 +0800 Subject: [PATCH 2/5] docs: update ssr data --- README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4fa18687c7..a8eb30a8ea 100644 --- a/README.md +++ b/README.md @@ -45,16 +45,12 @@ Rax is a universal JavaScript library with a largely React-compatible API. If yo ## Server-side Rendering Comparison -> [Benchmark repository](https://github.com/taobaofed/server-side-rendering-comparison): Run on a MacBook Air Intel Core i5 @1.4 GHz x 2 with 8 GB memory with Node.js v6.9.2. +> [Benchmark repository](https://github.com/taobaofed/server-side-rendering-comparison): Run on a MacBook Pro (Late 2013) 2.4GHz Intel Core i5 and 8GB 1600MHz DDR3 with Node.js v6.9.2. -|Library\Version|renderToSring | QPS [#/sec] | -|--------------|-----------------|-------------| -| React@15.4.2 | 152.73ms | 444.10 | -| Rax@0.1.2 | 89.70ms | 513.54 | -| Vue@2.1.8 | 100.06ms | 599.58 | - -- renderToSring: Independent process serial execution 10 times, each process parallel rendering 100 times, without cache. -- QPS: `ab -n1000 -c50 url`, without cache +|Library\Version|renderToSring | +|--------------|-----------------| +| React@15.4.2 | 94.93 ops/sec | +| Rax@0.1.2 | 154 ops/sec(faster) | ## Quick Start From f9286a49623ba1948e5263c63cda2ecb65144e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=9E=9C?= Date: Mon, 16 Jan 2017 17:25:41 +0800 Subject: [PATCH 3/5] docs: improve benchmark info --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a8eb30a8ea..ac56d990d0 100644 --- a/README.md +++ b/README.md @@ -45,12 +45,17 @@ Rax is a universal JavaScript library with a largely React-compatible API. If yo ## Server-side Rendering Comparison -> [Benchmark repository](https://github.com/taobaofed/server-side-rendering-comparison): Run on a MacBook Pro (Late 2013) 2.4GHz Intel Core i5 and 8GB 1600MHz DDR3 with Node.js v6.9.2. - -|Library\Version|renderToSring | +|Library |renderToSring | |--------------|-----------------| | React@15.4.2 | 94.93 ops/sec | -| Rax@0.1.2 | 154 ops/sec(faster) | +| Rax@0.1.2 | 154 ops/sec(faster) | + +Benchmark info: + +- Benchmark repository: https://github.com/taobaofed/server-side-rendering-comparison +- Platform info: MacBook Pro (Late 2013) 2.4GHz Intel Core i5 and 8GB 1600MHz DDR3 +- Node.js v6.9.2 and with `NODE_ENV=production`. `RenderToString` Both require from `lib` not `dist` +- with about 600 dom nodes ## Quick Start From 9c73db5fd3562af06a4f921f9d9ac4cc89a3506f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=9E=9C?= Date: Mon, 16 Jan 2017 22:24:26 +0800 Subject: [PATCH 4/5] docs: amend description --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ac56d990d0..13dfc14538 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ Rax is a universal JavaScript library with a largely React-compatible API. If yo ## Server-side Rendering Comparison +Benchmark run on a MacBook Pro 2.4GHz Intel Core i5 and 8GB 1600MHz DDR3 with Node.js v6.9.2. For more information, please refer to [benchmark repository](https://github.com/taobaofed/server-side-rendering-comparison). + |Library |renderToSring | |--------------|-----------------| | React@15.4.2 | 94.93 ops/sec | From 0e9e3488c45b15f163b6da9fa30c0314fb6e7de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=9E=9C?= Date: Mon, 16 Jan 2017 22:25:11 +0800 Subject: [PATCH 5/5] docs: amend description --- README.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/README.md b/README.md index 13dfc14538..aacd0aec3a 100644 --- a/README.md +++ b/README.md @@ -52,13 +52,6 @@ Benchmark run on a MacBook Pro 2.4GHz Intel Core i5 and 8GB 1600MHz DDR3 with No | React@15.4.2 | 94.93 ops/sec | | Rax@0.1.2 | 154 ops/sec(faster) | -Benchmark info: - -- Benchmark repository: https://github.com/taobaofed/server-side-rendering-comparison -- Platform info: MacBook Pro (Late 2013) 2.4GHz Intel Core i5 and 8GB 1600MHz DDR3 -- Node.js v6.9.2 and with `NODE_ENV=production`. `RenderToString` Both require from `lib` not `dist` -- with about 600 dom nodes - ## Quick Start Install the Rax CLI tools to init project: