Skip to content

Commit 2df42f7

Browse files
committed
Extend codspeed benchmarks
1 parent f7d4011 commit 2df42f7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/test_benchmarks.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22
import uuid_utils
3+
import uuid_utils.compat as uuid_compat
34

45
pytest.importorskip("pytest_codspeed")
56

@@ -63,3 +64,13 @@ def test_uuid_from_int() -> None:
6364
@pytest.mark.benchmark
6465
def test_uuid_from_fields_utils() -> None:
6566
uuid_utils.UUID(fields=(2819197978, 63598, 4570, 189, 26, 73622928926))
67+
68+
69+
@pytest.mark.benchmark
70+
def test_compat_uuid4() -> None:
71+
uuid_compat.uuid4()
72+
73+
74+
@pytest.mark.benchmark
75+
def test_compat_uuid7() -> None:
76+
uuid_compat.uuid7()

0 commit comments

Comments
 (0)