[wasm] Cache files in simple server (#83744)
authorRadek Doulik <radek.doulik@gmail.com>
Wed, 22 Mar 2023 08:53:42 +0000 (09:53 +0100)
committerGitHub <noreply@github.com>
Wed, 22 Mar 2023 08:53:42 +0000 (09:53 +0100)
commit2e8148c1ef393f6f505d205a5522bb134fae5d43
treee2fc523ffd4ef98e7498548c74fc3cd444e20285
parent7500625bd9303a48d0500b6123cec604e49039ae
[wasm] Cache files in simple server (#83744)

* [wasm] Cache files in simple server

This improves measurements comparison between hosts with different
storage speeds. In our case local storage vs NFS storage
on the otherwise equal hardware.

The cache is filled during initial runs of browser-bench.

Also do not prefetch `icudt.dat` as it is not used anymore.

* Use StringComparer.OrdinalIgnoreCase for the cache
src/mono/sample/wasm/browser-bench/appstart-frame.html
src/mono/sample/wasm/simple-server/Program.cs