test.js 201 B

1234567891011
  1. "use strict"
  2. var createTree = require("../rbtree.js")
  3. var t = createTree()
  4. var s = Date.now()
  5. for(var i=0; i<100000; ++i) {
  6. t = t.insert(Math.random(), Math.random())
  7. }
  8. console.log(Date.now() - s)