diff options
author | Rich Trott <rtrott@gmail.com> | 2016-02-20 04:03:16 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-02-22 22:09:26 +0300 |
commit | 4bb529d972afaa02d57a2ca29db33ac92f69b81d (patch) | |
tree | 362545fa9b9565b72d128b5ed0c9fd86c326633e /benchmark/net | |
parent | 65cd2a0f9689b1213bb13a8d48f38d8b9e4ff09f (diff) |
benchmark: use strict mode
Apply strict mode to benchmark code.
PR-URL: https://github.com/nodejs/node/pull/5336
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'benchmark/net')
-rw-r--r-- | benchmark/net/net-c2s-cork.js | 1 | ||||
-rw-r--r-- | benchmark/net/net-c2s.js | 1 | ||||
-rw-r--r-- | benchmark/net/net-pipe.js | 1 | ||||
-rw-r--r-- | benchmark/net/net-s2c.js | 1 | ||||
-rw-r--r-- | benchmark/net/tcp-raw-c2s.js | 1 | ||||
-rw-r--r-- | benchmark/net/tcp-raw-pipe.js | 1 | ||||
-rw-r--r-- | benchmark/net/tcp-raw-s2c.js | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/net/net-c2s-cork.js b/benchmark/net/net-c2s-cork.js index 5f8e0fa4357..4ca53716b7d 100644 --- a/benchmark/net/net-c2s-cork.js +++ b/benchmark/net/net-c2s-cork.js @@ -1,4 +1,5 @@ // test the speed of .pipe() with sockets +'use strict'; var common = require('../common.js'); var PORT = common.PORT; diff --git a/benchmark/net/net-c2s.js b/benchmark/net/net-c2s.js index 49de7c77c92..bbfbd883f8e 100644 --- a/benchmark/net/net-c2s.js +++ b/benchmark/net/net-c2s.js @@ -1,4 +1,5 @@ // test the speed of .pipe() with sockets +'use strict'; var common = require('../common.js'); var PORT = common.PORT; diff --git a/benchmark/net/net-pipe.js b/benchmark/net/net-pipe.js index 2a5ed8e4836..d12a45fc9c3 100644 --- a/benchmark/net/net-pipe.js +++ b/benchmark/net/net-pipe.js @@ -1,4 +1,5 @@ // test the speed of .pipe() with sockets +'use strict'; var common = require('../common.js'); var PORT = common.PORT; diff --git a/benchmark/net/net-s2c.js b/benchmark/net/net-s2c.js index 79e22494a7b..4dc84621085 100644 --- a/benchmark/net/net-s2c.js +++ b/benchmark/net/net-s2c.js @@ -1,4 +1,5 @@ // test the speed of .pipe() with sockets +'use strict'; var common = require('../common.js'); var PORT = common.PORT; diff --git a/benchmark/net/tcp-raw-c2s.js b/benchmark/net/tcp-raw-c2s.js index 0039313f523..25efc78c0ac 100644 --- a/benchmark/net/tcp-raw-c2s.js +++ b/benchmark/net/tcp-raw-c2s.js @@ -1,5 +1,6 @@ // In this benchmark, we connect a client to the server, and write // as many bytes as we can in the specified time (default = 10s) +'use strict'; var common = require('../common.js'); var util = require('util'); diff --git a/benchmark/net/tcp-raw-pipe.js b/benchmark/net/tcp-raw-pipe.js index 1504d11db5f..e22437f422e 100644 --- a/benchmark/net/tcp-raw-pipe.js +++ b/benchmark/net/tcp-raw-pipe.js @@ -1,5 +1,6 @@ // In this benchmark, we connect a client to the server, and write // as many bytes as we can in the specified time (default = 10s) +'use strict'; var common = require('../common.js'); var util = require('util'); diff --git a/benchmark/net/tcp-raw-s2c.js b/benchmark/net/tcp-raw-s2c.js index 502586c2a05..15f9578b778 100644 --- a/benchmark/net/tcp-raw-s2c.js +++ b/benchmark/net/tcp-raw-s2c.js @@ -1,5 +1,6 @@ // In this benchmark, we connect a client to the server, and write // as many bytes as we can in the specified time (default = 10s) +'use strict'; var common = require('../common.js'); var util = require('util'); |