Hi,

On Sat, 24 Sept 2022 at 20:31, Matti Picus <matti.pi...@gmail.com> wrote:
> I think you are looking for the JIT "threshold" option [1], which can be
> specified as
>
>
> pypy --jit threshold=200
>
>
> to get the JIT to consider a loop "hot" after it has been hit 200 times.
> The default is 1000

Note that doing so will change the performance characteristics of your
program.  If you just want to understand why short-running programs
don't produce any jit log at all, the answer is simply that
short-running programs never reach the threshold at which the JIT
kicks in and are instead executed fully on the interpreter.  This is
expected, and it's how JITs work in general.  PyPy's JIT has a
threshold of 1000, which means that after a loop has run 1000 times,
it spends a relatively large amount of time JITting and optimizing
that loop in the hope that it will pay off in future execution time.


A bientôt,

Armin
_______________________________________________
pypy-dev mailing list -- pypy-dev@python.org
To unsubscribe send an email to pypy-dev-le...@python.org
https://mail.python.org/mailman3/lists/pypy-dev.python.org/
Member address: arch...@mail-archive.com

Reply via email to