Skip to content

Commit b08a867

Browse files
committed
benchmark,doc,lib: capitalize more comments
PR-URL: #26849 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent fd992e6 commit b08a867

File tree

232 files changed

+466
-473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+466
-473
lines changed

benchmark/_cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function CLI(usage, settings) {
1616
if (!(this instanceof CLI)) return new CLI(usage, settings);
1717

1818
if (process.argv.length < 3) {
19-
this.abort(usage); // abort will exit the process
19+
this.abort(usage); // Abort will exit the process
2020
}
2121

2222
this.usage = usage;

benchmark/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Benchmark.prototype.end = function(operations) {
202202
if (elapsed[0] === 0 && elapsed[1] === 0) {
203203
if (!process.env.NODEJS_BENCHMARK_ZERO_ALLOWED)
204204
throw new Error('insufficient clock precision for short benchmark');
205-
// avoid dividing by zero
205+
// Avoid dividing by zero
206206
elapsed[1] = 1;
207207
}
208208

benchmark/crypto/hash-stream-creation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// throughput benchmark
1+
// Throughput benchmark
22
// creates a single hasher, then pushes a bunch of data through it
33
'use strict';
44
const common = require('../common.js');

benchmark/crypto/hash-stream-throughput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// throughput benchmark
1+
// Throughput benchmark
22
// creates a single hasher, then pushes a bunch of data through it
33
'use strict';
44
const common = require('../common.js');

benchmark/fixtures/simple-http-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const storedUnicode = Object.create(null);
99

1010
const useDomains = process.env.NODE_USE_DOMAINS;
1111

12-
// set up one global domain.
12+
// Set up one global domain.
1313
if (useDomains) {
1414
var domain = require('domain');
1515
const gdom = domain.create();

benchmark/http/cluster.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const PORT = common.PORT;
55
const cluster = require('cluster');
66
if (cluster.isMaster) {
77
var bench = common.createBenchmark(main, {
8-
// unicode confuses ab on os x.
8+
// Unicode confuses ab on os x.
99
type: ['bytes', 'buffer'],
1010
len: [4, 1024, 102400],
1111
c: [50, 500]

benchmark/http/incoming_headers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require('../common.js');
33
const http = require('http');
44

55
const bench = common.createBenchmark(main, {
6-
// unicode confuses ab on os x.
6+
// Unicode confuses ab on os x.
77
c: [50, 500],
88
n: [0, 5, 20]
99
});

benchmark/http/simple.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const common = require('../common.js');
33

44
const bench = common.createBenchmark(main, {
5-
// unicode confuses ab on os x.
5+
// Unicode confuses ab on os x.
66
type: ['bytes', 'buffer'],
77
len: [4, 1024, 102400],
88
chunks: [1, 4],

benchmark/net/net-c2s-cork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function main({ dur, len, type }) {
3333

3434
const writer = new Writer();
3535

36-
// the actual benchmark.
36+
// The actual benchmark.
3737
const server = net.createServer((socket) => {
3838
socket.pipe(writer);
3939
});

benchmark/net/net-c2s.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function main({ dur, len, type }) {
3434
const reader = new Reader();
3535
const writer = new Writer();
3636

37-
// the actual benchmark.
37+
// The actual benchmark.
3838
const server = net.createServer((socket) => {
3939
socket.pipe(writer);
4040
});

0 commit comments

Comments
 (0)