diff options
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/_benchmark_progress.js | 2 | ||||
-rw-r--r-- | benchmark/napi/function_args/index.js | 2 | ||||
-rw-r--r-- | benchmark/napi/function_call/index.js | 2 | ||||
-rw-r--r-- | benchmark/net/net-pipe.js | 2 | ||||
-rw-r--r-- | benchmark/net/tcp-raw-c2s.js | 6 | ||||
-rw-r--r-- | benchmark/net/tcp-raw-pipe.js | 6 | ||||
-rw-r--r-- | benchmark/net/tcp-raw-s2c.js | 6 | ||||
-rw-r--r-- | benchmark/tls/tls-connect.js | 2 |
8 files changed, 14 insertions, 14 deletions
diff --git a/benchmark/_benchmark_progress.js b/benchmark/_benchmark_progress.js index 24bb95dcd1..935b1f24d4 100644 --- a/benchmark/_benchmark_progress.js +++ b/benchmark/_benchmark_progress.js @@ -40,7 +40,7 @@ class BenchmarkProgress { this.completedConfig = 0; // Total number of configurations for the current file this.scheduledConfig = 0; - this.interval = 0; // result of setInterval for updating the elapsed time + this.interval; // Updates the elapsed time. } startQueue(index) { diff --git a/benchmark/napi/function_args/index.js b/benchmark/napi/function_args/index.js index df567dcfcc..8f13454944 100644 --- a/benchmark/napi/function_args/index.js +++ b/benchmark/napi/function_args/index.js @@ -1,4 +1,4 @@ -// show the difference between calling a V8 binding C++ function +// Show the difference between calling a V8 binding C++ function // relative to a comparable N-API C++ function, // in various types/numbers of arguments. // Reports n of calls per second. diff --git a/benchmark/napi/function_call/index.js b/benchmark/napi/function_call/index.js index e7d9fe46e5..b63d805fe3 100644 --- a/benchmark/napi/function_call/index.js +++ b/benchmark/napi/function_call/index.js @@ -1,4 +1,4 @@ -// show the difference between calling a short js function +// Show the difference between calling a short js function // relative to a comparable C++ function. // Reports n of calls per second. // Note that JS speed goes up, while cxx speed stays about the same. diff --git a/benchmark/net/net-pipe.js b/benchmark/net/net-pipe.js index e0b2842fd1..e02f1d3816 100644 --- a/benchmark/net/net-pipe.js +++ b/benchmark/net/net-pipe.js @@ -48,7 +48,7 @@ function main({ dur, len, type }) { socket.pipe(writer); setTimeout(function() { - // multiply by 2 since we're sending it first one way + // Multiply by 2 since we're sending it first one way // then then back again. const bytes = writer.received * 2; const gbits = (bytes * 8) / (1024 * 1024 * 1024); diff --git a/benchmark/net/tcp-raw-c2s.js b/benchmark/net/tcp-raw-c2s.js index 116cf57a23..745a664e00 100644 --- a/benchmark/net/tcp-raw-c2s.js +++ b/benchmark/net/tcp-raw-c2s.js @@ -47,12 +47,12 @@ function main({ dur, len, type }) { }, dur * 1000); clientHandle.onread = function(buffer) { - // we're not expecting to ever get an EOF from the client. - // just lots of data forever. + // We're not expecting to ever get an EOF from the client. + // Just lots of data forever. if (!buffer) fail('read'); - // don't slice the buffer. the point of this is to isolate, not + // Don't slice the buffer. The point of this is to isolate, not // simulate real traffic. bytes += buffer.byteLength; }; diff --git a/benchmark/net/tcp-raw-pipe.js b/benchmark/net/tcp-raw-pipe.js index 7144c237af..65a7d05f4b 100644 --- a/benchmark/net/tcp-raw-pipe.js +++ b/benchmark/net/tcp-raw-pipe.js @@ -44,8 +44,8 @@ function main({ dur, len, type }) { fail(err, 'connect'); clientHandle.onread = function(buffer) { - // we're not expecting to ever get an EOF from the client. - // just lots of data forever. + // We're not expecting to ever get an EOF from the client. + // Just lots of data forever. if (!buffer) fail('read'); @@ -105,7 +105,7 @@ function main({ dur, len, type }) { clientHandle.readStart(); setTimeout(function() { - // multiply by 2 since we're sending it first one way + // Multiply by 2 since we're sending it first one way // then then back again. bench.end(2 * (bytes * 8) / (1024 * 1024 * 1024)); process.exit(0); diff --git a/benchmark/net/tcp-raw-s2c.js b/benchmark/net/tcp-raw-s2c.js index fbb7d2520c..4dd1ad6ee8 100644 --- a/benchmark/net/tcp-raw-s2c.js +++ b/benchmark/net/tcp-raw-s2c.js @@ -110,12 +110,12 @@ function main({ dur, len, type }) { connectReq.oncomplete = function() { var bytes = 0; clientHandle.onread = function(buffer) { - // we're not expecting to ever get an EOF from the client. - // just lots of data forever. + // We're not expecting to ever get an EOF from the client. + // Just lots of data forever. if (!buffer) fail('read'); - // don't slice the buffer. the point of this is to isolate, not + // Don't slice the buffer. The point of this is to isolate, not // simulate real traffic. bytes += buffer.byteLength; }; diff --git a/benchmark/tls/tls-connect.js b/benchmark/tls/tls-connect.js index 524d7468d0..fd7ea89b3b 100644 --- a/benchmark/tls/tls-connect.js +++ b/benchmark/tls/tls-connect.js @@ -59,7 +59,7 @@ function makeConnection() { function done() { running = false; - // it's only an established connection if they both saw it. + // It's only an established connection if they both saw it. // because we destroy the server somewhat abruptly, these // don't always match. Generally, serverConn will be // the smaller number, but take the min just to be sure. |