Skip to content

Commit 0efc66a

Browse files
Added benchmarks.
1 parent a42bb68 commit 0efc66a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

btree/palm/interface.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ for in-memory indices. Otherwise, the operations have typical B-tree
2626
time complexities.
2727
2828
You primarily see the benefits of multithreading in availability and
29-
bulk operations, below is a benchmark against the B-plus tree in this
30-
package.
29+
bulk operations.
3130
32-
BenchmarkBulkAddToExisting-8 200 8690207 ns/op
33-
BenchmarkBulkAddToExisting-8 100 16778514 ns/op
31+
Benchmarks:
32+
33+
BenchmarkReadAndWrites-8 1000 1543648 ns/op
34+
BenchmarkBulkAdd-8 1000 1705673 ns/op
35+
BenchmarkBulkAddToExisting-8 100 70056512 ns/op
36+
BenchmarkGet-8 100000 17128 ns/op
37+
BenchmarkBulkGet-8 3000 507249 ns/op
3438
*/
3539
package palm
3640

0 commit comments

Comments
 (0)