summaryrefslogtreecommitdiff
path: root/benchmark/fs
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-02-19 17:03:16 -0800
committerRich Trott <rtrott@gmail.com>2016-02-22 11:09:26 -0800
commit4bb529d972afaa02d57a2ca29db33ac92f69b81d (patch)
tree362545fa9b9565b72d128b5ed0c9fd86c326633e /benchmark/fs
parent65cd2a0f9689b1213bb13a8d48f38d8b9e4ff09f (diff)
downloadnode-new-4bb529d972afaa02d57a2ca29db33ac92f69b81d.tar.gz
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/fs')
-rw-r--r--benchmark/fs/read-stream-throughput.js1
-rw-r--r--benchmark/fs/readfile.js1
-rw-r--r--benchmark/fs/write-stream-throughput.js1
3 files changed, 3 insertions, 0 deletions
diff --git a/benchmark/fs/read-stream-throughput.js b/benchmark/fs/read-stream-throughput.js
index a181a2df60..6b6a392796 100644
--- a/benchmark/fs/read-stream-throughput.js
+++ b/benchmark/fs/read-stream-throughput.js
@@ -1,4 +1,5 @@
// test the throughput of the fs.WriteStream class.
+'use strict';
var path = require('path');
var common = require('../common.js');
diff --git a/benchmark/fs/readfile.js b/benchmark/fs/readfile.js
index ac3241901b..0f39f64f57 100644
--- a/benchmark/fs/readfile.js
+++ b/benchmark/fs/readfile.js
@@ -1,6 +1,7 @@
// Call fs.readFile over and over again really fast.
// Then see how many times it got called.
// Yes, this is a silly benchmark. Most benchmarks are silly.
+'use strict';
var path = require('path');
var common = require('../common.js');
diff --git a/benchmark/fs/write-stream-throughput.js b/benchmark/fs/write-stream-throughput.js
index 9ff58389c7..a3eef67aa4 100644
--- a/benchmark/fs/write-stream-throughput.js
+++ b/benchmark/fs/write-stream-throughput.js
@@ -1,4 +1,5 @@
// test the throughput of the fs.WriteStream class.
+'use strict';
var path = require('path');
var common = require('../common.js');