Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 650 Bytes

benchmarking.md

File metadata and controls

35 lines (29 loc) · 650 Bytes

the video

a@debian:~/build/scte35-threefive$ ls -alh ~/mpegts/plp0.ts
-rw-r--r-- 1 a a 3.7G May 21  2020 /home/a/mpegts/plp0.ts

the code

import sys
import threefive

if __name__ == "__main__":
    if len(sys.argv) > 1:
        for arg in sys.argv[1:]:
            strm = threefive.Stream(arg)
            strm.decode()

python 3.10

a@debian:~/$ time python3 test.py /home/a/mpegts/plp0.ts

real	0m14.293s
user	0m12.666s
sys     0m1.406s

PyPy 7.3.9

a@debian:~/$ time pypy3 test.py /home/a/mpegts/plp0.ts

real	0m2.879s         <--  Boom goes the dynamite.
user	0m2.576s
sys     0m1.101s