diff --git a/test/benchmark.js b/test/benchmark.js index bfe5b38..4be1afd 100644 --- a/test/benchmark.js +++ b/test/benchmark.js @@ -1,4 +1,4 @@ -var sys = require('sys'), +var util = require('util'), fs = require('fs'), assert = require('assert'), iptrie = require('iptrie'); @@ -17,20 +17,20 @@ fs.readFile(process.argv[2], 'utf-8', function(err, data) { count++; } catch(e) { - sys.puts(e,m); + util.puts(e,m); } } } var elapsed = (+(new Date()) - start)/1000.0; - sys.puts(count + " entries in " + elapsed + " seconds "); - sys.puts(count/elapsed + " add/sec"); + util.puts(count + " entries in " + elapsed + " seconds "); + util.puts(count/elapsed + " add/sec"); var timelookup = function(ip, cnt) { if(!cnt) cnt = 100000; var start = +(new Date()); for(var i=0; i