summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-12-10 13:27:32 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-12-17 17:14:35 +0100
commit50dd555910ed0338c35f27ee57e947b9ec95724c (patch)
tree73a0d59eb5b1087afa4c42bc667bb268f1a23b72 /benchmark
parentbe3ae339360c9833a77ebf5772786d75b7a8dd78 (diff)
downloadandroid-node-v8-50dd555910ed0338c35f27ee57e947b9ec95724c.tar.gz
android-node-v8-50dd555910ed0338c35f27ee57e947b9ec95724c.tar.bz2
android-node-v8-50dd555910ed0338c35f27ee57e947b9ec95724c.zip
doc,lib,test: capitalize comment sentences
This activates the eslint capitalize comment rule for comments above 50 characters. PR-URL: https://github.com/nodejs/node/pull/24996 Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/_benchmark_progress.js2
-rw-r--r--benchmark/napi/function_args/index.js2
-rw-r--r--benchmark/napi/function_call/index.js2
-rw-r--r--benchmark/net/net-pipe.js2
-rw-r--r--benchmark/net/tcp-raw-c2s.js6
-rw-r--r--benchmark/net/tcp-raw-pipe.js6
-rw-r--r--benchmark/net/tcp-raw-s2c.js6
-rw-r--r--benchmark/tls/tls-connect.js2
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.