summaryrefslogtreecommitdiff
path: root/benchmark/util
diff options
context:
space:
mode:
authorSebastiaan Deckers <sebdeckers83@gmail.com>2017-07-10 20:55:21 -0400
committerRefael Ackermann <refack@gmail.com>2017-07-21 15:13:47 -0400
commitbb294059040def8e8c0b1719cc17f6537ab5cb39 (patch)
treeacc6b7bcf88da8e6078fa5ab91f6718289f32bbf /benchmark/util
parent4f875222445b07016a8294fa5a5bf7418c735489 (diff)
downloadnode-new-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.gz
lib,src: fix consistent spacing inside braces
PR-URL: https://github.com/nodejs/node/pull/14162 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/util')
-rw-r--r--benchmark/util/format.js2
-rw-r--r--benchmark/util/inspect-proxy.js10
-rw-r--r--benchmark/util/inspect.js4
3 files changed, 8 insertions, 8 deletions
diff --git a/benchmark/util/format.js b/benchmark/util/format.js
index 82e25b4c4c..55ce76e1db 100644
--- a/benchmark/util/format.js
+++ b/benchmark/util/format.js
@@ -17,7 +17,7 @@ const bench = common.createBenchmark(main, {
const inputs = {
'string': ['Hello, my name is %s', 'fred'],
'number': ['Hi, I was born in %d', 1942],
- 'object': ['An error occurred %j', {msg: 'This is an error', code: 'ERR'}],
+ 'object': ['An error occurred %j', { msg: 'This is an error', code: 'ERR' }],
'unknown': ['hello %a', 'test'],
'no-replace': [1, 2]
};
diff --git a/benchmark/util/inspect-proxy.js b/benchmark/util/inspect-proxy.js
index 805c520e28..c220462ce7 100644
--- a/benchmark/util/inspect-proxy.js
+++ b/benchmark/util/inspect-proxy.js
@@ -10,20 +10,20 @@ const bench = common.createBenchmark(main, {
function twoDifferentProxies(n) {
// This one should be slower because we're looking up multiple proxies.
- const proxyA = new Proxy({}, {get: () => {}});
- const proxyB = new Proxy({}, {get: () => {}});
+ const proxyA = new Proxy({}, { get: () => {} });
+ const proxyB = new Proxy({}, { get: () => {} });
bench.start();
for (var i = 0; i < n; i += 1)
- util.inspect({a: proxyA, b: proxyB}, {showProxy: true});
+ util.inspect({ a: proxyA, b: proxyB }, { showProxy: true });
bench.end(n);
}
function oneProxy(n) {
// This one should be a bit faster because of the internal caching.
- const proxy = new Proxy({}, {get: () => {}});
+ const proxy = new Proxy({}, { get: () => {} });
bench.start();
for (var i = 0; i < n; i += 1)
- util.inspect({a: proxy, b: proxy}, {showProxy: true});
+ util.inspect({ a: proxy, b: proxy }, { showProxy: true });
bench.end(n);
}
diff --git a/benchmark/util/inspect.js b/benchmark/util/inspect.js
index 3312bd683b..115a3b64a7 100644
--- a/benchmark/util/inspect.js
+++ b/benchmark/util/inspect.js
@@ -3,14 +3,14 @@ var util = require('util');
var common = require('../common.js');
-var bench = common.createBenchmark(main, {n: [5e6]});
+var bench = common.createBenchmark(main, { n: [5e6] });
function main(conf) {
var n = conf.n | 0;
bench.start();
for (var i = 0; i < n; i += 1) {
- util.inspect({a: 'a', b: 'b', c: 'c', d: 'd'});
+ util.inspect({ a: 'a', b: 'b', c: 'c', d: 'd' });
}
bench.end(n);
}