diff options
author | Micheil Smith <micheil@brandedcode.com> | 2010-10-12 01:04:09 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-12 02:21:36 +0400 |
commit | e38eb0c5a4d4e8497f5815be81994ddb01fbceb7 (patch) | |
tree | 6a78ed08f6186930b9ef9984fbd7b4354beae7c7 /benchmark | |
parent | 0a0e90dcca1642849ffa8b8cee4ad9b8f15c0fc1 (diff) |
Soft migration of sys -> util, Removal of deprecated utils module.
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/io.js | 4 | ||||
-rw-r--r-- | benchmark/process_loop.js | 4 | ||||
-rw-r--r-- | benchmark/run.js | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/benchmark/io.js b/benchmark/io.js index a91bdbbe67b..505d8d03aae 100644 --- a/benchmark/io.js +++ b/benchmark/io.js @@ -1,5 +1,5 @@ var fs = require('fs'); -var sys = require('sys'); +var util = require('util'); var Buffer = require('buffer').Buffer; var path = "/tmp/wt.dat"; @@ -43,7 +43,7 @@ function writetest(size, bsize) { s.on('drain', function () { dowrite(); - if (c++ % 2000 == 0) sys.print("."); + if (c++ % 2000 == 0) util.print("."); }); dowrite(); diff --git a/benchmark/process_loop.js b/benchmark/process_loop.js index 18cc1695640..eeba06ab972 100644 --- a/benchmark/process_loop.js +++ b/benchmark/process_loop.js @@ -1,4 +1,4 @@ -var sys = require("sys"), +var util = require("util"), childProcess = require("child_process"); function next (i) { @@ -7,7 +7,7 @@ function next (i) { var child = childProcess.spawn("echo", ["hello"]); child.stdout.addListener("data", function (chunk) { - sys.print(chunk); + util.print(chunk); }); child.addListener("exit", function (code) { diff --git a/benchmark/run.js b/benchmark/run.js index b1479b6006c..28916873760 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -1,5 +1,5 @@ var path = require("path"); -var sys = require("sys"); +var util = require("util"); var childProcess = require("child_process"); var benchmarks = [ "timers.js" , "process_loop.js" @@ -19,7 +19,7 @@ function exec (script, callback) { function runNext (i) { if (i >= benchmarks.length) return; - sys.print(benchmarks[i] + ": "); + util.print(benchmarks[i] + ": "); exec(benchmarks[i], function (elapsed, code) { if (code != 0) { console.log("ERROR "); |