| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,7 +65,7 @@ function CLI(usage, settings) { | |||
| 65 | 65 | // item arguments | |
| 66 | 66 | this.items.push(arg); | |
| 67 | 67 | ||
| 68 | - // the next value must be an item | ||
| 68 | + // The next value must be an item | ||
| 69 | 69 | mode = 'item'; | |
| 70 | 70 | } else { | |
| 71 | 71 | // Bad case, abort | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - // test the speed of .pipe() with sockets | ||
| 1 | + // Test the speed of .pipe() with sockets | ||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | ||
| 4 | 4 | const common = require('../common.js'); | |
@@ -78,7 +78,7 @@ Writer.prototype.write = function(chunk, encoding, cb) { | |||
| 78 | 78 | return true; | |
| 79 | 79 | }; | |
| 80 | 80 | ||
| 81 | - // doesn't matter, never emits anything. | ||
| 81 | + // Doesn't matter, never emits anything. | ||
| 82 | 82 | Writer.prototype.on = function() {}; | |
| 83 | 83 | Writer.prototype.once = function() {}; | |
| 84 | 84 | Writer.prototype.emit = function() {}; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - // test the speed of .pipe() with sockets | ||
| 1 | + // Test the speed of .pipe() with sockets | ||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | ||
| 4 | 4 | const common = require('../common.js'); | |
@@ -72,7 +72,7 @@ Writer.prototype.write = function(chunk, encoding, cb) { | |||
| 72 | 72 | return true; | |
| 73 | 73 | }; | |
| 74 | 74 | ||
| 75 | - // doesn't matter, never emits anything. | ||
| 75 | + // Doesn't matter, never emits anything. | ||
| 76 | 76 | Writer.prototype.on = function() {}; | |
| 77 | 77 | Writer.prototype.once = function() {}; | |
| 78 | 78 | Writer.prototype.emit = function() {}; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - // test the speed of .pipe() with sockets | ||
| 1 | + // Test the speed of .pipe() with sockets | ||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | ||
| 4 | 4 | const common = require('../common.js'); | |
@@ -75,7 +75,7 @@ Writer.prototype.write = function(chunk, encoding, cb) { | |||
| 75 | 75 | return true; | |
| 76 | 76 | }; | |
| 77 | 77 | ||
| 78 | - // doesn't matter, never emits anything. | ||
| 78 | + // Doesn't matter, never emits anything. | ||
| 79 | 79 | Writer.prototype.on = function() {}; | |
| 80 | 80 | Writer.prototype.once = function() {}; | |
| 81 | 81 | Writer.prototype.emit = function() {}; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - // test the speed of .pipe() with sockets | ||
| 1 | + // Test the speed of .pipe() with sockets | ||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | ||
| 4 | 4 | const common = require('../common.js'); | |
@@ -73,7 +73,7 @@ Writer.prototype.write = function(chunk, encoding, cb) { | |||
| 73 | 73 | return true; | |
| 74 | 74 | }; | |
| 75 | 75 | ||
| 76 | - // doesn't matter, never emits anything. | ||
| 76 | + // Doesn't matter, never emits anything. | ||
| 77 | 77 | Writer.prototype.on = function() {}; | |
| 78 | 78 | Writer.prototype.once = function() {}; | |
| 79 | 79 | Writer.prototype.emit = function() {}; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,7 +68,7 @@ Writer.prototype.write = function(chunk, encoding, cb) { | |||
| 68 | 68 | return true; | |
| 69 | 69 | }; | |
| 70 | 70 | ||
| 71 | - // doesn't matter, never emits anything. | ||
| 71 | + // Doesn't matter, never emits anything. | ||
| 72 | 72 | Writer.prototype.on = function() {}; | |
| 73 | 73 | Writer.prototype.once = function() {}; | |
| 74 | 74 | Writer.prototype.emit = function() {}; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,9 +5,9 @@ | |||
| 5 | 5 | const common = require('../common.js'); | |
| 6 | 6 | const util = require('util'); | |
| 7 | 7 | ||
| 8 | - // if there are dur=N and len=N args, then | ||
| 8 | + // If there are dur=N and len=N args, then | ||
| 9 | 9 | // run the function with those settings. | |
| 10 | - // if not, then queue up a bunch of child processes. | ||
| 10 | + // If not, then queue up a bunch of child processes. | ||
| 11 | 11 | const bench = common.createBenchmark(main, { | |
| 12 | 12 | len: [102400, 1024 * 1024 * 16], | |
| 13 | 13 | type: ['utf', 'asc', 'buf'], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,7 +50,7 @@ if (format === 'csv') { | |||
| 50 | 50 | for (const key of Object.keys(data.conf)) { | |
| 51 | 51 | conf += ` ${key}=${JSON.stringify(data.conf[key])}`; | |
| 52 | 52 | } | |
| 53 | - // delete first space of the configuration | ||
| 53 | + // Delete first space of the configuration | ||
| 54 | 54 | conf = conf.slice(1); | |
| 55 | 55 | if (format === 'csv') { | |
| 56 | 56 | // Escape quotes (") for correct csv formatting | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,7 +57,7 @@ function depth1(N) { | |||
| 57 | 57 | } | |
| 58 | 58 | } | |
| 59 | 59 | ||
| 60 | - // concurrent setImmediate, 0 arguments | ||
| 60 | + // Concurrent setImmediate, 0 arguments | ||
| 61 | 61 | function breadth(N) { | |
| 62 | 62 | var n = 0; | |
| 63 | 63 | bench.start(); | |
@@ -71,7 +71,7 @@ function breadth(N) { | |||
| 71 | 71 | } | |
| 72 | 72 | } | |
| 73 | 73 | ||
| 74 | - // concurrent setImmediate, 1 argument | ||
| 74 | + // Concurrent setImmediate, 1 argument | ||
| 75 | 75 | function breadth1(N) { | |
| 76 | 76 | var n = 0; | |
| 77 | 77 | bench.start(); | |
@@ -85,7 +85,7 @@ function breadth1(N) { | |||
| 85 | 85 | } | |
| 86 | 86 | } | |
| 87 | 87 | ||
| 88 | - // concurrent setImmediate, 4 arguments | ||
| 88 | + // Concurrent setImmediate, 4 arguments | ||
| 89 | 89 | function breadth4(N) { | |
| 90 | 90 | N /= 2; | |
| 91 | 91 | var n = 0; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -237,7 +237,7 @@ if (cluster.isMaster) { | |||
| 237 | 237 | res.writeHead(200); | |
| 238 | 238 | res.end('hello world\n'); | |
| 239 | 239 | ||
| 240 | - // notify master about the request | ||
| 240 | + // Notify master about the request | ||
| 241 | 241 | process.send({ cmd: 'notifyRequest' }); | |
| 242 | 242 | }).listen(8000); | |
| 243 | 243 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments