30 Jul 2004 TazForEver   » (Journeyer)

A word about IronPython
I've downloaded IronPython 0.6. I've started an interactive shell. I type dir() brrrrrrrrrrrr ... finally got the result. Feels like a bit slow comparing to python. So i'm looking for application where IronPython is faster than every other python application. I'm thinking about JIT..

Benchmarks files and results DNABench.py doesn't provide the time module

  • Python 2.3.4
    time python ~/Python/tmp/DNABench.py
    found AAAGTAAGCC at 1000000 it took 0 miliseconds
    found AAATGAAAAAG at 1048960 it took 1071 miliseconds
    found GAAAAAGTAAG at 1085441 it took 1947 miliseconds
    found TCTAAAAATAG at 1179694 it took 4075 miliseconds
    found ACGTGATGTAG at 1204636 it took 4697 miliseconds
    found AATAGATTCGG at 1548576 it took 13325 miliseconds
    found TCGTACAAATG at 1576094 it took 14024 miliseconds
    found CGGACGTGATG at 1599255 it took 14524 miliseconds
    found ATTCGGACGTG at 1689064 it took 16926 miliseconds
    found AGATTCGGACG at 1859204 it took 20982 miliseconds
    found TGATGTAGTCG at 1984902 it took 23993 miliseconds
    found AAATAGATTCG at 2000000 it took 24339 miliseconds
    Python regex took 24339 milliseconds
    
    

    real 0m24.459s user 0m19.622s sys 0m0.067s

  • Pysco 1.2.2
    time python /home/benoit/Python/tmp/DNABenchPsyco.py
    found AAAGTAAGCC at 1000000 it took 1 miliseconds
    found AAATGAAAAAG at 1048960 it took 309 miliseconds
    found GAAAAAGTAAG at 1085441 it took 631 miliseconds
    found TCTAAAAATAG at 1179694 it took 1220 miliseconds
    found ACGTGATGTAG at 1204636 it took 1529 miliseconds
    found AATAGATTCGG at 1548576 it took 4442 miliseconds
    found TCGTACAAATG at 1576094 it took 4645 miliseconds
    found CGGACGTGATG at 1599255 it took 4800 miliseconds
    found ATTCGGACGTG at 1689064 it took 5372 miliseconds
    found AGATTCGGACG at 1859204 it took 6490 miliseconds
    found TGATGTAGTCG at 1984902 it took 7377 miliseconds
    found AAATAGATTCG at 2000000 it took 7480 miliseconds
    Python regex took 7480 milliseconds
    
    

    real 0m7.714s user 0m5.654s sys 0m0.029s

  • IronPython 0.6
    time bin/IronPythonConsole.exe /home/benoit/Python/tmp/DNABenchIron.py
    Python regex took - milliseconds
    
    

    real 0m44.932s user 0m0.060s sys 0m0.044s

    Ok. obviously Psyco wins. IronPython is damn slow, so my shell experience was more than a feeling.
    Btw, as you can see, i have a bug to report because IronPython doesn't find any DNA subsequence ...

  • Latest blog entries     Older blog entries

    New Advogato Features

    New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

    Keep up with the latest Advogato features by reading the Advogato status blog.

    If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!