MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / __init__

Method __init__

python/tests/test_performance_baseline.py:21–26  ·  view source on GitHub ↗
(self, tree_size: int = 10000, order: int = 128)

Source from the content-addressed store, hash-verified

19 """Measure baseline performance metrics for B+ tree operations."""
20
21 def __init__(self, tree_size: int = 10000, order: int = 128):
22 self.tree_size = tree_size
23 self.order = order
24 self.keys = list(range(tree_size))
25 random.shuffle(self.keys)
26 self.tree = None
27
28 def measure_operation(self, operation, iterations: int = 1) -> Tuple[float, float]:
29 """Measure operation time and return (total_time, per_operation_time)."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected