Skip to content

buffer: remove async tick and improve perf by 48%

Rodrigo Muino Tomonari requested to merge github/fork/anonrig/perf/blob-text into main

I ran the benchmarks only for blob.text() since it's the only relevant one, but added more for future reference.

                                                       confidence improvement accuracy (*)   (**)  (***)
blob/blob-text.js operation='text' n=1000000 bytes=0          ***     48.33 %       ±1.65% ±2.20% ±2.87%
blob/blob-text.js operation='text' n=1000000 bytes=128        ***      9.65 %       ±2.33% ±3.10% ±4.04%
blob/blob-text.js operation='text' n=1000000 bytes=8          ***      8.20 %       ±1.84% ±2.45% ±3.19%

Be aware that when doing many comparisons the risk of a false-positive result increases.
In this case, there are 3 comparisons, you can thus expect the following amount of false-positive results:
  0.15 false positives, when considering a   5% risk acceptance (*, **, ***),
  0.03 false positives, when considering a   1% risk acceptance (**, ***),
  0.00 false positives, when considering a 0.1% risk acceptance (***)

Merge request reports

Loading