[pypy-issue] [issue854] PyPy 1.6, 1.5 slower than CPython2.7, 2.6 with Konira

Alfredo Deza tracker at bugs.pypy.org
Tue Aug 30 01:52:43 CEST 2011


New submission from Alfredo Deza <alfredodeza at gmail.com>:

Konira is a Python Testing DSL that "translates" the files via a Tokenizer 
function and later with `compile` and `exec`.

I've benchmarked Konira's own testing suite (203 tests) with PyPy 1.6 and 1.5 
and CPython2.7 and 2.6 (best out of three runs):

PyPy 1.5 = konira -d  0.39s user 0.03s system 98% cpu 0.430 total
PyPy 1.6 = konira -d  0.46s user 0.04s system 99% cpu 0.503 total
CPython 2.7 = konira -d  0.14s user 0.02s system 99% cpu 0.159 total
CPython 2.6 = konira -d  0.28s user 0.03s system 99% cpu 0.320 total

Virtualenvs where created like this for PyPy:

    virtualenv --no-site-packages -p `which pypy1.5` 
    virtualenv --no-site-packages -p `which pypy1.6`

And like this for CPython:

    virtualenv --no-site-packages

Konira should be installed via PIP and the actual project live in GitHub [0]. To 
test out the benchmarking numbers, you would need to checkout the konira 
project, have konira installed (via PIP or `setup.py install`) and run konira 
against it's own tests.

The `translation` module for Konira happens in 
`konira.collector.globals_from_file` if this is of interest. Any technical 
details or questions, please do not doubt in letting me know. 

Thanks for looking into this!

[0] https://github.com/alfredodeza/konira

----------
messages: 3052
nosy: alfredodeza, pypy-issue
priority: bug
status: unread
title: PyPy 1.6,1.5 slower than CPython2.7,2.6 with Konira

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue854>
________________________________________


More information about the pypy-issue mailing list