Don't use string length in map benchmark (since it's slow now).

This commit is contained in:
Bob Nystrom
2015-09-12 09:59:30 -07:00
parent 92c2b2d5e0
commit e1f979e78a
5 changed files with 13 additions and 8 deletions
+3 -1
View File
@@ -81,8 +81,10 @@ var start = IO.clock
var map = {}
var i = 0
for (key in keys) {
map[key] = key.count
map[key] = i
i = i + 1
}
var sum = 0