var fold = require("reducers/fold")
var it = function () {}
var list = []
var initial = {}
// 7 ~ 30ms
for (var i = 0; i < 100000; i++) {
list.reduce(it, initial)
}
// 100 ~ 500ms
for (var i = 0; i < 100000; i++) {
fold(list, it, initial)
}
fold is almost two orders of magnitude slower then Array.prototype.reduce :(
fold
is almost two orders of magnitude slower thenArray.prototype.reduce
:(This should probably be fixed.