Skip to content

Commit

Permalink
最新一代文件结构 Node.js 解析
Browse files Browse the repository at this point in the history
  • Loading branch information
zengzhan committed Apr 16, 2017
1 parent fd960b9 commit 28f4b03
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions qqzeng-ip-nodejs/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var ipFinder = require("./IPSearch.js")

ipFinder.load(__dirname+"/qqzeng-ip.dat")

console.time("ip run time");

console.log(ipFinder.query("255.255.255.255"))
console.log(ipFinder.query("221.226.99.130"))
console.log(ipFinder.query("43.245.217.130"))
console.log(ipFinder.query("114.114.114.114"))
console.log(ipFinder.query("180.76.76.76"))
console.log(ipFinder.query("218.205.107.205"))


console.timeEnd("ip run time");
console.log("ok")

0 comments on commit 28f4b03

Please sign in to comment.