Format operations per second.
(ops: float)
| 94 | |
| 95 | |
| 96 | def format_ops(ops: float) -> str: |
| 97 | """Format operations per second.""" |
| 98 | if ops > 1000: |
| 99 | return f"{ops / 1000:.1f}K ops/sec" |
| 100 | else: |
| 101 | return f"{ops:.1f} ops/sec" |
| 102 | |
| 103 | |
| 104 | def calculate_change_percentage(old_value: float, new_value: float) -> Tuple[float, str]: |
no outgoing calls
no test coverage detected
searching dependent graphs…