Skip to content

Commit

Permalink
Remove performance benchmarking from tests
Browse files Browse the repository at this point in the history
This is unnecessary and only adds to the CI runtime. A new, smaller CI
job will be introduced instead to exercise the new benchmarking utility.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
rtobar committed Aug 23, 2024
1 parent 20fe518 commit b90f168
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,3 @@ def skip_if_crc32c_unavailable(
def pytest_sessionstart(session: pytest.Session) -> None:
print("crc32c is big endian? ", crc32c.big_endian)
print("crc32c is hardware based? ", crc32c.hardware_based)

if not _crc32c_is_available():
print("crc32c can't run, no performance diagnostic issued")
return

# We run 1GB in total
data = b" " * int(1e8)
n = 10

start = time.monotonic()
[crc32c.crc32c(data) for _ in range(n)]
end = time.monotonic()
speed_gbs = 1 / (end - start)

print(f"crc32c running at {speed_gbs:.3f} [GB/s]")

0 comments on commit b90f168

Please sign in to comment.