how to check if jit is available in my build

Folks, I compiled pypy 1.9 and 2.0-beta1 from source, and the few small tests I ran were slower than expected. I am wondering if I did everything "right" and if there is a runtime check that would give me a definitive answer to the question "is jit available in this build"? Google seems to not know the answer. Thanks Davide

sys.pypy_translation_info["translation.jit"] will tell you definitely. Alex On Fri, Feb 22, 2013 at 12:22 PM, Davide Del Vento <ddvento@ucar.edu> wrote:
Folks,
I compiled pypy 1.9 and 2.0-beta1 from source, and the few small tests I ran were slower than expected. I am wondering if I did everything "right" and if there is a runtime check that would give me a definitive answer to the question "is jit available in this build"?
Google seems to not know the answer.
Thanks Davide ______________________________**_________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/**mailman/listinfo/pypy-dev<http://mail.python.org/mailman/listinfo/pypy-dev>
-- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero

Thanks to both. I can import pypyjit and sys.pypy_translation_info["translation.jit"] is True (for both 2.9 and 2.0-beta1). Have a nice weekend, Davide On 02/22/2013 01:54 PM, Alex Gaynor wrote:
sys.pypy_translation_info["translation.jit"]
will tell you definitely.
Alex
On Fri, Feb 22, 2013 at 12:22 PM, Davide Del Vento <ddvento@ucar.edu <mailto:ddvento@ucar.edu>> wrote:
Folks,
I compiled pypy 1.9 and 2.0-beta1 from source, and the few small tests I ran were slower than expected. I am wondering if I did everything "right" and if there is a runtime check that would give me a definitive answer to the question "is jit available in this build"?
Google seems to not know the answer.
Thanks Davide _________________________________________________ pypy-dev mailing list pypy-dev@python.org <mailto:pypy-dev@python.org> http://mail.python.org/__mailman/listinfo/pypy-dev <http://mail.python.org/mailman/listinfo/pypy-dev>
-- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero
participants (2)
-
Alex Gaynor
-
Davide Del Vento