Skip to content

how to run python script in JIT version? #169

Description

@l1t1

Documentation

I use it to run a script on normal version and JIT version python, no difference found.

docker run -itd -v /mnt/c/d:/par --network host --name cinder localhost/dependabot-github_actions-docker-build-push-action-6.8f5bfcf:latest
cd97720efb0563ab1a7977c68c46e2a3a334840ecd23cd9ff37363c676e2abcc
root@DESKTOP-59T6U68:/mnt/c/d# docker exec -it cinder bash

[root@DESKTOP-59T6U68 bin]# python3
Python 3.8.9 (default, Apr  6 2021, 00:00:00)
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

[root@DESKTOP-59T6U68 bin]# ./python3.10
JIT: Jit/symbolizer.cpp:55 -- could not find symtab
Python 3.10.5+cinder (main, Jul  1 2024, 12:32:33) [GCC 10.3.1 20210422 (Red Hat 10.3.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

[root@DESKTOP-59T6U68 bin]# time ./python3.10 /par/pe932d.py
JIT: Jit/symbolizer.cpp:55 -- could not find symtab

T(16) = 72673459417881349

real    0m10.220s
user    0m10.072s
sys     0m0.012s
[root@DESKTOP-59T6U68 bin]# time python3 /par/pe932d.py

N=2499500025000000, a=24995000, b=25000000, k=8, s=49995000
T(16) = 72673459417881349

real    0m10.212s
user    0m10.141s
sys     0m0.011s
[root@DESKTOP-59T6U68 bin]#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions