diff options
author | 2021-10-07 21:27:47 -0700 | |
---|---|---|
committer | 2021-10-07 21:27:47 -0700 | |
commit | ae7b91efe2076254d66d608052f4729fd34b3546 (patch) | |
tree | 1bc8f86ca8997c4801839f38326e7b3993efe651 /bench/hot-module-reloading/readme.md | |
parent | 6d9ccd9b8edb149aee957b3e6c7668cc45ce7664 (diff) | |
download | bun-jarred/bench.tar.gz bun-jarred/bench.tar.zst bun-jarred/bench.zip |
Add CSS HMR benchmarkjarred/bench
Diffstat (limited to 'bench/hot-module-reloading/readme.md')
-rw-r--r-- | bench/hot-module-reloading/readme.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bench/hot-module-reloading/readme.md b/bench/hot-module-reloading/readme.md new file mode 100644 index 000000000..539eb023c --- /dev/null +++ b/bench/hot-module-reloading/readme.md @@ -0,0 +1,15 @@ +# Benchmarking hot module reloading + +## Methodology + +How do you benchmark hot module reloading? What do you call "done" and what do you call "start"? + +The answer is certainly not compilation time. Compilation time is one step. + +I think the answer should be different depending on the type of content loaded. + +For CSS, the answer should be "when the updated stylesheet was drawn on the screen" +For JavaScript, the answer should be "when the rebuilt code completed execution such that any changes are applied" +For images & assets, the answer should be "when the updated asset finished loading" + +The start time should be defined as "the timestamp the filesystem set as the write time". As in, the time the developer pressed save in their editor. |