Skip to content

Commit f49eaa4

Browse files
committed
fix: remove unsupported min_rounds from codspeed benchmark markers
1 parent ad3065f commit f49eaa4

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

tests/test_benchmark.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,75 +17,75 @@
1717
# ── macro bench: larger inputs where hashing dominates ───────────────
1818

1919

20-
@pytest.mark.benchmark(min_rounds=1000)
20+
@pytest.mark.benchmark
2121
def test_xxh32_intdigest_1kb():
2222
xxhash.xxh32_intdigest(DATA_1KB, seed=SEED_32)
2323

2424

25-
@pytest.mark.benchmark(min_rounds=1000)
25+
@pytest.mark.benchmark
2626
def test_xxh3_64_intdigest_1kb():
2727
xxhash.xxh3_64_intdigest(DATA_1KB, seed=SEED_64)
2828

2929

30-
@pytest.mark.benchmark(min_rounds=1000)
30+
@pytest.mark.benchmark
3131
def test_xxh3_64_intdigest_10kb():
3232
xxhash.xxh3_64_intdigest(DATA_10KB, seed=SEED_64)
3333

3434

35-
@pytest.mark.benchmark(min_rounds=1000)
35+
@pytest.mark.benchmark
3636
def test_xxh3_128_intdigest_1kb():
3737
xxhash.xxh3_128_intdigest(DATA_1KB, seed=SEED_64)
3838

3939

4040
# ── micro bench: tiny inputs where call overhead dominates ───────────
4141

4242

43-
@pytest.mark.benchmark(min_rounds=5000)
43+
@pytest.mark.benchmark
4444
def test_xxh32_intdigest_5b():
4545
xxhash.xxh32_intdigest(DATA_5B)
4646

4747

48-
@pytest.mark.benchmark(min_rounds=5000)
48+
@pytest.mark.benchmark
4949
def test_xxh32_intdigest_5b_seed():
5050
xxhash.xxh32_intdigest(DATA_5B, seed=SEED_32)
5151

5252

53-
@pytest.mark.benchmark(min_rounds=5000)
53+
@pytest.mark.benchmark
5454
def test_xxh32_intdigest_5b_seed_kw():
5555
xxhash.xxh32_intdigest(DATA_5B, seed=SEED_32)
5656

5757

58-
@pytest.mark.benchmark(min_rounds=5000)
58+
@pytest.mark.benchmark
5959
def test_xxh64_intdigest_5b():
6060
xxhash.xxh64_intdigest(DATA_5B)
6161

6262

63-
@pytest.mark.benchmark(min_rounds=5000)
63+
@pytest.mark.benchmark
6464
def test_xxh64_intdigest_5b_seed_kw():
6565
xxhash.xxh64_intdigest(DATA_5B, seed=SEED_64)
6666

6767

68-
@pytest.mark.benchmark(min_rounds=5000)
68+
@pytest.mark.benchmark
6969
def test_xxh3_64_intdigest_5b():
7070
xxhash.xxh3_64_intdigest(DATA_5B)
7171

7272

73-
@pytest.mark.benchmark(min_rounds=5000)
73+
@pytest.mark.benchmark
7474
def test_xxh3_64_intdigest_5b_seed_kw():
7575
xxhash.xxh3_64_intdigest(DATA_5B, seed=SEED_64)
7676

7777

78-
@pytest.mark.benchmark(min_rounds=5000)
78+
@pytest.mark.benchmark
7979
def test_xxh3_128_intdigest_5b():
8080
xxhash.xxh3_128_intdigest(DATA_5B)
8181

8282

83-
@pytest.mark.benchmark(min_rounds=5000)
83+
@pytest.mark.benchmark
8484
def test_xxh32_hexdigest_5b():
8585
xxhash.xxh32_hexdigest(DATA_5B)
8686

8787

88-
@pytest.mark.benchmark(min_rounds=5000)
88+
@pytest.mark.benchmark
8989
def test_xxh64_hexdigest_5b():
9090
xxhash.xxh64_hexdigest(DATA_5B)
9191

@@ -95,54 +95,54 @@ def test_xxh64_hexdigest_5b():
9595
DATA_STR = "hello world"
9696

9797

98-
@pytest.mark.benchmark(min_rounds=5000)
98+
@pytest.mark.benchmark
9999
def test_xxh32_intdigest_str():
100100
xxhash.xxh32_intdigest(DATA_STR)
101101

102102

103-
@pytest.mark.benchmark(min_rounds=5000)
103+
@pytest.mark.benchmark
104104
def test_xxh64_intdigest_str():
105105
xxhash.xxh64_intdigest(DATA_STR)
106106

107107

108-
@pytest.mark.benchmark(min_rounds=5000)
108+
@pytest.mark.benchmark
109109
def test_xxh3_64_intdigest_str():
110110
xxhash.xxh3_64_intdigest(DATA_STR)
111111

112112

113-
@pytest.mark.benchmark(min_rounds=5000)
113+
@pytest.mark.benchmark
114114
def test_xxh3_128_intdigest_str():
115115
xxhash.xxh3_128_intdigest(DATA_STR)
116116

117117

118118
# ── type constructor (tests tp_vectorcall) ──────────────────────────
119119

120120

121-
@pytest.mark.benchmark(min_rounds=5000)
121+
@pytest.mark.benchmark
122122
def test_xxh32_ctor():
123123
xxhash.xxh32(DATA_STR)
124124

125125

126-
@pytest.mark.benchmark(min_rounds=5000)
126+
@pytest.mark.benchmark
127127
def test_xxh32_ctor_seed():
128128
xxhash.xxh32(DATA_STR, seed=SEED_32)
129129

130130

131-
@pytest.mark.benchmark(min_rounds=5000)
131+
@pytest.mark.benchmark
132132
def test_xxh32_ctor_empty():
133133
xxhash.xxh32()
134134

135135

136-
@pytest.mark.benchmark(min_rounds=5000)
136+
@pytest.mark.benchmark
137137
def test_xxh64_ctor():
138138
xxhash.xxh64(DATA_STR, seed=SEED_64)
139139

140140

141-
@pytest.mark.benchmark(min_rounds=5000)
141+
@pytest.mark.benchmark
142142
def test_xxh3_64_ctor():
143143
xxhash.xxh3_64(DATA_STR, seed=SEED_64)
144144

145145

146-
@pytest.mark.benchmark(min_rounds=5000)
146+
@pytest.mark.benchmark
147147
def test_xxh3_128_ctor():
148148
xxhash.xxh3_128(DATA_STR, seed=SEED_64)

0 commit comments

Comments
 (0)