(self, tree_size: int = 10000, order: int = 128)
| 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).""" |
nothing calls this directly
no outgoing calls
no test coverage detected