@schenklklopfer Huh, interesting.
cPython 3.12.3:
9475.86 MB/s
PyPy (nightly, default settings):
4378.93 MB/s
PyPy (nightly, --jit off):
3676.98 MB/s
My guess: Most of the time is spent in bytes.find(), which is a highly optimized C function in #cPython already. The actual python overhead is so small that my parser even beats #rust (emmett-core) in this benchmark. #PyPy does not have much room for its #JIT to do anything, and seems to have a less optimized stdlib?


