Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 833 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 833 Bytes

redmx

CI Documentation Status PyPI version

Rate, Errors and Duration Metrics

Basic Example

import time
from redmx import RateErrorDuration
metrics = RateErrorDuration()
time.sleep(1)
metrics.increment_count(1)
metrics.increment_count(1)
metrics.rate()
print(metrics)

Will produce the following output:

rate = 1.9904 tps, errors = 0 in 2 (0.0%), duration = 502.4475 milliseconds per transaction.

For full documentation please go to https://redmx.readthedocs.io/en/latest/