From ae7b91efe2076254d66d608052f4729fd34b3546 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 7 Oct 2021 21:27:47 -0700 Subject: Add CSS HMR benchmark --- .../css-stress-test/src/main.tsx | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 bench/hot-module-reloading/css-stress-test/src/main.tsx (limited to 'bench/hot-module-reloading/css-stress-test/src/main.tsx') diff --git a/bench/hot-module-reloading/css-stress-test/src/main.tsx b/bench/hot-module-reloading/css-stress-test/src/main.tsx new file mode 100644 index 000000000..3b67cd111 --- /dev/null +++ b/bench/hot-module-reloading/css-stress-test/src/main.tsx @@ -0,0 +1,64 @@ +export const Main = ({ productName, cssInJS }) => { + return ( + <> +
+
CSS HMR Stress Test!
+

+ This page visually tests how quickly a bundler can update{" "} + {cssInJS ? "CSS-in-JS" : "CSS"} over Hot Module Reloading. +

+
+
+
+

+ + Ran: + +

+ +
+
+
+
+ The progress bar should move from left to right smoothly. +
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+
+
+ The spinners should rotate & change color smoothly. +
+
+
+ + + ); +}; -- cgit v1.2.3