Hi Joseph My first intuition would be to run it for a bit longer (can you run it in a loop couple times and see if it speeds up?) 2s might not be enough for JIT to kick in on something as complicated
On Wed, Feb 13, 2019 at 3:11 PM Joseph Reagle <joseph.2...@reagle.org> wrote: > > Hello all, thank you for your work on pypy. > > I'm a pypy newbie and thought to try it on a program I use a lot and where I > appreciate fast response times (especially when running on a webhost). I keep > my bibliography notes in interconnected XML-based mindmaps (Freeplane). > `fe.py` parses and walks those XML files and generates output (bibtex, YAML, > wikipedia, or HTML that highlights a queried search) [1]. > > [1]: https://github.com/reagle/thunderdell/blob/master/fe.py > > Running it with pypy is slower: > > ``` > > time python3 fe.py -cq Giddens > python3 fe.py -cq Giddens 1.46s user 0.16s system 97% cpu 1.649 total > > time pypy3 fe.py -cq Giddens > pypy3 fe.py -cq Giddens 2.81s user 0.26s system 93% cpu 3.292 total > ``` > > I tried to use the pypy profiler but it would seemingly lockup (and > vmprof.com seems down to boot). I've attached a cProfile. As you might > expect, it spends a lot of time parsing XML, doing the regex search on nodes, > and parsing citation strings. > > Any idea why pypy is slower? > > > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > https://mail.python.org/mailman/listinfo/pypy-dev _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev