We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ee0341 commit 9a0ed8fCopy full SHA for 9a0ed8f
bench.js
@@ -120,7 +120,7 @@ new Benchmark.Suite()
120
.on('cycle', function(event) { console.log(String(event.target)); }).run();
121
122
123
-console.log('remove ' + N + ' items one by one');
+console.log('\nremove ' + N + ' items one by one');
124
125
new Benchmark.Suite()
126
.add('llrb', function () {
@@ -130,7 +130,8 @@ new Benchmark.Suite()
130
})
131
.add('bsarray', function () {
132
for (var i = 0; i < N; i++) {
133
- arr.removeAt(arr.find(data[i]));
+ var index = arr.find(data[i]);
134
+ if (index !== null) arr.removeAt(index);
135
}
136
137
.add('functional-red-black-tree', function () {
0 commit comments