Skip to content

Commit 2492712

Browse files
committed
Revert benchmark related changes
1 parent c74f01d commit 2492712

2 files changed

Lines changed: 0 additions & 32 deletions

File tree

mypyc/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,6 @@ def mypycify(
588588
build_dir = compiler_options.target_dir
589589

590590
cflags: list[str] = []
591-
opt_level = 3
592591
if compiler.compiler_type == "unix":
593592
cflags += [
594593
f"-O{opt_level}",

mypyc/test-data/run-classes.test

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5467,34 +5467,3 @@ def test_read_corrupted_data() -> None:
54675467
print("RANDOMIZED TEST FAILURE -- please open an issue with the following context:")
54685468
print(">>>", e, data)
54695469
raise
5470-
5471-
5472-
5473-
[case testXXX_librt_internal]
5474-
from librt.internal import WriteBuffer, ReadBuffer, write_int, read_int
5475-
5476-
import time
5477-
5478-
5479-
def bench(data: bytes, n: int) -> None:
5480-
for i in range(10 * 1000):
5481-
b = ReadBuffer(data)
5482-
for i in range(n):
5483-
read_int(b)
5484-
5485-
5486-
w = WriteBuffer()
5487-
N = 400 * 1000
5488-
for i in range(N):
5489-
write_int(w, i & 63)
5490-
5491-
d = w.getvalue()
5492-
5493-
bench(d, N)
5494-
5495-
def test_foo() -> None:
5496-
t0 = time.time()
5497-
bench(d, N)
5498-
print("===>", time.time() - t0)
5499-
print()
5500-
assert False

0 commit comments

Comments
 (0)