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: swap var for let in benchmarks · moander/node@d0ed431

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • benchmark
    • module
      • module-loader-deep.js
      • module-loader.js
    • os
      • cpus.js
      • loadavg.js
      • networkInterfaces.js
    • path
      • basename-posix.js
      • basename-win32.js
      • dirname-posix.js
      • dirname-win32.js
      • extname-posix.js
      • extname-win32.js
      • format-posix.js
      • format-win32.js
      • isAbsolute-posix.js
      • isAbsolute-win32.js
      • join-posix.js
      • join-win32.js
      • makeLong-win32.js
      • normalize-posix.js
      • normalize-win32.js
      • resolve-posix.js
      • resolve-win32.js
    • process
      • memoryUsage.js
      • next-tick-breadth-args.js
      • next-tick-breadth.js
      • next-tick-exec-args.js
      • next-tick-exec.js
      • queue-microtask-breadth.js
    • querystring
      • querystring-stringify.js
      • querystring-unescapebuffer.js
    • string_decoder
      • string-decoder-create.js
    • timers
      • immediate.js
      • timers-breadth-args.js
      • timers-breadth.js
      • timers-cancel-pooled.js
      • timers-cancel-unpooled.js
      • timers-insert-pooled.js
      • timers-insert-unpooled.js
      • timers-timeout-nexttick.js
      • timers-timeout-pooled.js
      • timers-timeout-unpooled.js
    • tls
      • convertprotocols.js
      • tls-connect.js
    • v8
      • get-stats.js
    • vm
      • run-in-context.js
      • run-in-this-context.js
    • worker
      • echo.js

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎benchmark/module/module-loader-deep.js‎

Copy file name to clipboardExpand all lines: benchmark/module/module-loader-deep.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function main({ ext, cache, files }) {
1919
`${benchmarkDirectory}/a.js`,
2020
'module.exports = {};'
2121
);
22-
for (var i = 0; i <= files; i++) {
22+
for (let i = 0; i <= files; i++) {
2323
fs.mkdirSync(`${benchmarkDirectory}/${i}`);
2424
fs.writeFileSync(
2525
`${benchmarkDirectory}/${i}/package.json`,
Collapse file

‎benchmark/module/module-loader.js‎

Copy file name to clipboardExpand all lines: benchmark/module/module-loader.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const bench = common.createBenchmark(main, {
2121
function main({ n, name, cache, files, dir }) {
2222
tmpdir.refresh();
2323
fs.mkdirSync(benchmarkDirectory);
24-
for (var i = 0; i <= files; i++) {
24+
for (let i = 0; i <= files; i++) {
2525
fs.mkdirSync(`${benchmarkDirectory}${i}`);
2626
fs.writeFileSync(
2727
`${benchmarkDirectory}${i}/package.json`,
Collapse file

‎benchmark/os/cpus.js‎

Copy file name to clipboardExpand all lines: benchmark/os/cpus.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
99

1010
function main({ n }) {
1111
bench.start();
12-
for (var i = 0; i < n; ++i)
12+
for (let i = 0; i < n; ++i)
1313
cpus();
1414
bench.end(n);
1515
}
Collapse file

‎benchmark/os/loadavg.js‎

Copy file name to clipboardExpand all lines: benchmark/os/loadavg.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
99

1010
function main({ n }) {
1111
bench.start();
12-
for (var i = 0; i < n; ++i)
12+
for (let i = 0; i < n; ++i)
1313
loadavg();
1414
bench.end(n);
1515
}
Collapse file

‎benchmark/os/networkInterfaces.js‎

Copy file name to clipboardExpand all lines: benchmark/os/networkInterfaces.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
99

1010
function main({ n }) {
1111
bench.start();
12-
for (var i = 0; i < n; ++i)
12+
for (let i = 0; i < n; ++i)
1313
networkInterfaces();
1414
bench.end(n);
1515
}
Collapse file

‎benchmark/path/basename-posix.js‎

Copy file name to clipboardExpand all lines: benchmark/path/basename-posix.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function main({ n, pathext }) {
2727
}
2828

2929
bench.start();
30-
for (var i = 0; i < n; i++) {
30+
for (let i = 0; i < n; i++) {
3131
posix.basename(i % 3 === 0 ? `${pathext}${i}` : pathext, ext);
3232
}
3333
bench.end(n);
Collapse file

‎benchmark/path/basename-win32.js‎

Copy file name to clipboardExpand all lines: benchmark/path/basename-win32.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function main({ n, pathext }) {
2727
}
2828

2929
bench.start();
30-
for (var i = 0; i < n; i++) {
30+
for (let i = 0; i < n; i++) {
3131
win32.basename(i % 3 === 0 ? `${pathext}${i}` : pathext, ext);
3232
}
3333
bench.end(n);
Collapse file

‎benchmark/path/dirname-posix.js‎

Copy file name to clipboardExpand all lines: benchmark/path/dirname-posix.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const bench = common.createBenchmark(main, {
1717

1818
function main({ n, path }) {
1919
bench.start();
20-
for (var i = 0; i < n; i++) {
20+
for (let i = 0; i < n; i++) {
2121
posix.dirname(i % 3 === 0 ? `${path}${i}` : path);
2222
}
2323
bench.end(n);
Collapse file

‎benchmark/path/dirname-win32.js‎

Copy file name to clipboardExpand all lines: benchmark/path/dirname-win32.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const bench = common.createBenchmark(main, {
1717

1818
function main({ n, path }) {
1919
bench.start();
20-
for (var i = 0; i < n; i++) {
20+
for (let i = 0; i < n; i++) {
2121
win32.dirname(i % 3 === 0 ? `${path}${i}` : path);
2222
}
2323
bench.end(n);
Collapse file

‎benchmark/path/extname-posix.js‎

Copy file name to clipboardExpand all lines: benchmark/path/extname-posix.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const bench = common.createBenchmark(main, {
2020

2121
function main({ n, path }) {
2222
bench.start();
23-
for (var i = 0; i < n; i++) {
23+
for (let i = 0; i < n; i++) {
2424
posix.extname(i % 3 === 0 ? `${path}${i}` : path);
2525
}
2626
bench.end(n);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.