diff --git a/benchmarks/benchmark.js b/benchmarks/benchmark.js index 22a69509815..4cf129f7b98 100644 --- a/benchmarks/benchmark.js +++ b/benchmarks/benchmark.js @@ -112,14 +112,14 @@ function printResults (results) { let last const rows = Object.entries(results) - // If any failed, put on the top of the list, otherwise order by mean, ascendin + // If any failed, put on the top of the list, otherwise order by mean, ascending .sort((a, b) => (!a[1].success ? -1 : b[1].mean - a[1].mean)) .map(([name, result]) => { if (!result.success) { return [name, result.size, 'Errored', 'N/A', 'N/A'] } - // Calculate throughtput and relative performance + // Calculate throughput and relative performance const { size, mean, standardError } = result const relative = last !== 0 ? (last / mean - 1) * 100 : 0 diff --git a/benchmarks/server.js b/benchmarks/server.js index c619c30de66..e1a32e838e9 100644 --- a/benchmarks/server.js +++ b/benchmarks/server.js @@ -16,7 +16,7 @@ if (cluster.isPrimary) { try { unlinkSync(socketPath) } catch (_) { - // Do not nothing if the socket does not exist + // Do nothing if the socket does not exist } for (let i = 0; i < workers; i++) { diff --git a/lib/api/api-stream.js b/lib/api/api-stream.js index 020fd08c586..f33f459f9d4 100644 --- a/lib/api/api-stream.js +++ b/lib/api/api-stream.js @@ -106,7 +106,7 @@ class StreamHandler extends AsyncResource { } res.on('drain', resume) - // TODO: Avoid finished. It registers an unecessary amount of listeners. + // TODO: Avoid finished. It registers an unnecessary amount of listeners. finished(res, { readable: false }, (err) => { const { callback, res, opaque, trailers, abort } = this