Serhiy Storchaka <storch...@gmail.com> added the comment:

Python script too rough tool to measure decoding performance on short strings. 
To do this I used C.

The benchmark scheme is as follows. Taken a big enough chunk of memory to 
reduce effect of processor cache. This area is splitted into many pieces with 
the same offset over long aligned block. Then measured a time of decoding all 
pieces of a certain size with a certain offset. Calculated an average time (ms) 
and decoding speed (MB/s).

Run benchmark:
gcc -Wall -O3 -I Include/ -I . -Xlinker -export-dynamic decode_ascii_bench.c 
libpython3.3m.a -lpthread -ldl -lutil -lm -lrt -o decode_ascii_bench && 
./decode_ascii_bench

----------
Added file: http://bugs.python.org/file25050/decode_ascii_bench.c

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14419>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to