File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -329,15 +329,15 @@ console.log("### Delta between B+ trees");
329
329
for ( let k of makeArray ( otherSize , true ) )
330
330
otherTree . set ( k , k * 10 ) ;
331
331
332
- measure ( ( ) => `Delta between B+tree with ${ size } nodes and B+tree with ${ otherSize } nodes` , ( ) => {
332
+ measure ( ( ) => `Delta between B+ trees with ${ size } nodes and B+tree with ${ otherSize } nodes` , ( ) => {
333
333
tree . diffAgainst ( otherTree ) ;
334
334
} ) ;
335
335
}
336
336
} )
337
337
338
338
console . log ( ) ;
339
339
sizes . forEach ( ( size , i ) => {
340
- for ( let j = i ; j < sizes . length ; j ++ ) {
340
+ for ( let j = 0 ; j < sizes . length ; j ++ ) {
341
341
const otherSize = sizes [ j ] ;
342
342
const keys = makeArray ( size + otherSize , true ) ;
343
343
const tree = new BTree ( ) ;
@@ -348,7 +348,7 @@ console.log("### Delta between B+ trees");
348
348
for ( let k of keys . slice ( size ) )
349
349
tree . set ( k , k * 10 ) ;
350
350
351
- measure ( ( ) => `Delta between B+tree with ${ size } nodes and cheap cloned B+tree with ${ otherSize } additional nodes` , ( ) => {
351
+ measure ( ( ) => `Delta between B+ trees with ${ size } nodes and cheap cloned B+tree with ${ otherSize } additional nodes` , ( ) => {
352
352
tree . diffAgainst ( otherTree ) ;
353
353
} ) ;
354
354
}
You can’t perform that action at this time.
0 commit comments