MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / format_ops

Function format_ops

bbot/scripts/benchmark_report.py:96–101  ·  view source on GitHub ↗

Format operations per second.

(ops: float)

Source from the content-addressed store, hash-verified

94
95
96def 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
104def calculate_change_percentage(old_value: float, new_value: float) -> Tuple[float, str]:

Callers 2

generate_benchmark_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…