Files: b3287b5da8e1c252351f41e6be8999482a580f5e / benchmark / index.js
244 bytesRaw
1 | const Rmap = require('../') |
2 | |
3 | function main () { |
4 | let start = new Date() |
5 | const map = new Rmap() |
6 | let num = 1000000 |
7 | while (--num) { |
8 | map.add({}) |
9 | } |
10 | |
11 | const end = new Date() - start |
12 | console.info('Execution time: %dms', end) |
13 | } |
14 | |
15 | main() |
16 |
Built with git-ssb-web