Skip to content

Commit

Permalink
chore: benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Mar 25, 2024
1 parent 29c3423 commit 41e6e51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions demo/benchmark.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2>Write</h2>
<div>
<a href="https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createWritable"
target="_blank">FileSystemFileHandle
createWritable:</a>
createWritable (Main Thread):</a>
<strong id="built-in-writer-cost"></strong>
</div>
<div>
Expand All @@ -37,7 +37,7 @@ <h2>Write</h2>
<span class="tip">, created 1000 records(创建了 1000 条记录)</span>
</div>
<div>
<a href="https://github.com/hughfenghen/opfs-tools" target="_blank"> opfs-tools:</a>
<a href="https://github.com/hughfenghen/opfs-tools" target="_blank"> opfs-tools (WebWorker):</a>
<strong id="opfs-tools-writer-cost"></strong>
</div>
<p>
Expand All @@ -54,7 +54,7 @@ <h2>Read</h2>
<span>每次读取 100KB,随机位置读取 1000 次</span>
</p>
<div>
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice" target="_blank">Blob slice:</a>
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice" target="_blank">Blob slice (Main Thread):</a>
<strong id="file-slice-read-cost"></strong>
</div>
<div>
Expand All @@ -63,7 +63,7 @@ <h2>Read</h2>
<span class="tip">, read 1000 records sequentially(顺序读取前面创建的 1000 条记录)</span>
</div>
<div>
<a href="https://github.com/hughfenghen/opfs-tools" target="_blank"> opfs-tools:</a>
<a href="https://github.com/hughfenghen/opfs-tools" target="_blank"> opfs-tools (WebWorker):</a>
<strong id="opfs-tools-read-cost"></strong>
</div>
<p>
Expand All @@ -79,11 +79,11 @@ <h2>Read</h2>
<span>一次性读取 100MB 文件的所有数据</span>
</p>
<div>
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice" target="_blank">Blobs lice:</a>
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice" target="_blank">Blob slice (Main Thread):</a>
<strong id="file-slice-read-all-cost"></strong>
</div>
<div>
<a href="https://github.com/hughfenghen/opfs-tools" target="_blank"> opfs-tools:</a>
<a href="https://github.com/hughfenghen/opfs-tools" target="_blank"> opfs-tools (WebWorker):</a>
<strong id="opfs-tools-read-all-cost"></strong>
</div>

Expand Down

0 comments on commit 41e6e51

Please sign in to comment.