aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/pages/pack-home/benchmark-data
diff options
context:
space:
mode:
authorHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
committerHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
commit4838df315931bb883f704ec3e1abe2685f296cdf (patch)
tree57a8550c4cd5338f1126364bb518c6cde8d96e7d /docs/components/pages/pack-home/benchmark-data
parentdb74ade0234a40c2120ad5f2a41bee50ce13de02 (diff)
downloadHydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz
HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip
πŸ˜€
Diffstat (limited to 'docs/components/pages/pack-home/benchmark-data')
-rw-r--r--docs/components/pages/pack-home/benchmark-data/README.md7
-rw-r--r--docs/components/pages/pack-home/benchmark-data/data.json54
2 files changed, 61 insertions, 0 deletions
diff --git a/docs/components/pages/pack-home/benchmark-data/README.md b/docs/components/pages/pack-home/benchmark-data/README.md
new file mode 100644
index 0000000..9b53481
--- /dev/null
+++ b/docs/components/pages/pack-home/benchmark-data/README.md
@@ -0,0 +1,7 @@
+# `turbopack` Benchmark Data
+
+- `bench_startup`: Time from cold start of the bundler to the browser successfully retrieving bundled scripts. This does not include react hydration time.
+- `bench_hydration`: Time from cold start of the bundler to the browser successfully retrieving bundled scripts. This does wait until react hydration has completed.
+- `bench_restart`: Before measuring: warms up any available persistent cache (we don’t have one yet) by performing the equivalent of the bench_hydration benchmark, shuts down the server. Then, times another bench_hydration.
+- `bench_hmr_to_eval`: Measures the time it takes from an incremental change to be made, bundled, sent over hmr, and evaluated by the browser.
+- `bench_hmr_to_commit`: Measures the time it takes from an incremental change to be made, bundled, sent over hmr, evaluated by the browser, and committed by React (runs a useEffect).
diff --git a/docs/components/pages/pack-home/benchmark-data/data.json b/docs/components/pages/pack-home/benchmark-data/data.json
new file mode 100644
index 0000000..f88ae6f
--- /dev/null
+++ b/docs/components/pages/pack-home/benchmark-data/data.json
@@ -0,0 +1,54 @@
+{
+ "cold": {
+ "1000": {
+ "next13": 1.38187759,
+ "vite": 4.19890847,
+ "next12": 3.64327949,
+ "next11": 9.19035540
+ },
+ "5000": {
+ "next13": 3.99792562,
+ "vite": 16.59615430,
+ "next12": 12.14057345,
+ "next11": 32.89712268
+ },
+ "10000": {
+ "next13": 7.34248178,
+ "vite": 32.25177941,
+ "next12": 23.27525035,
+ "next11": 71.80680350
+ },
+ "30000": {
+ "next13": 21.97034306,
+ "vite": 97.74466099,
+ "next12": 89.07274544,
+ "next11": 237.61188540
+ }
+ },
+ "file_change": {
+ "1000": {
+ "next13": 0.01890358,
+ "vite": 0.10476515,
+ "next12": 0.14617346,
+ "next11": 0.21155549
+ },
+ "5000": {
+ "next13": 0.02379283,
+ "vite": 0.10963156,
+ "next12": 0.49470051,
+ "next11": 0.86600602
+ },
+ "10000": {
+ "next13": 0.02302405,
+ "vite": 0.11295908,
+ "next12": 1.15193035,
+ "next11": 2.35675312
+ },
+ "30000": {
+ "next13": 0.02246753,
+ "vite": 0.13328557,
+ "next12": 6.40370549,
+ "next11": 9.50431942
+ }
+ }
+}