Skip to content

Commit 1f3fbb9

Browse files
committed
saving.
1 parent a684e13 commit 1f3fbb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

html/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ <h1>Uint8Array Base64 Benchmark</h1>
4343
<pre class="code_syntax" style="color:#000000;background:#ffffff;"><span class="line_wrapper">const b64 <span style="color:#808030; ">=</span> Uint8Array<span style="color:#808030; ">.</span>toBase64<span style="color:#808030; ">(</span><span style="color:#400000; ">bytes</span><span style="color:#808030; ">)</span><span style="color:#808030; ">;</span> <span style="color:#44aadd; ">//</span> string </span>
4444
<span class="line_wrapper">const recovered <span style="color:#808030; ">=</span> Uint8Array<span style="color:#808030; ">.</span>fromBase64<span style="color:#808030; ">(</span>b64<span style="color:#808030; ">)</span><span style="color:#808030; ">;</span> <span style="color:#44aadd; ">//</span> Uint8Array<span style="color:#808030; ">,</span> matches original <span style="color:#800000; ">'</span><span style="color:#0000e6; ">bytes</span><span style="color:#800000; ">'</span></span></pre>
4545

46-
<p>To see how fast they are in your browser, hit the button.</p>
46+
<p>The decoding function must ignore ASCII white-space characters. To test the performance, one of the benchmarks adds line breaks every 72 characters in the Base64 string before decoding it.</p>
47+
<p>To see how fast the functions are in your browser, hit the button.</p>
4748

4849

4950
<div>

0 commit comments

Comments
 (0)