GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — benchmark: fix text-decoder benchmark · nodejs/node@ab891ec

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • benchmark/util
    • text-decoder.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎benchmark/util/text-decoder.js‎

Copy file name to clipboardExpand all lines: benchmark/util/text-decoder.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ function main({ encoding, len, n, ignoreBOM }) {
1414
const decoder = new TextDecoder(encoding, { ignoreBOM });
1515

1616
bench.start();
17-
decoder.decode(buf);
17+
for (let i = 0; i < n; i++) {
18+
decoder.decode(buf);
19+
}
1820
bench.end(n);
1921
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.