[KoCo-CVS] [Commit] KoreanCodecs/doc benchmarks.txt
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-04-28 19:43:53
|
perky 02/04/28 00:44:23 Added: doc benchmarks.txt Log: - Add simple rough benchmark Revision Changes Path 1.1 KoreanCodecs/doc/benchmarks.txt Index: benchmarks.txt =================================================================== ROUGH Benchmark Tests (just for fun ;) -------------------------------------- $Id: benchmarks.txt,v 1.1 2002/04/28 07:44:23 perky Exp $ CPU: Intel Pentium III 800 OS: FreeBSD 4.5 Python: Python 2.2.1 C Compiler: Intel C Compiler 6.0 Decoder ======= 1000 times with 2901 bytes string korean.c korean.python ratio ----------- ----------------- ---------- EUC-KR: 0.04s 28.24s 74900 % (69MB/s) (0.09MB/s) CP949: 0.05s 40.27s 83896 % (57MB/s) (0.06MB/s) Encoder ======= 1000 times with 2660 unicode characters korean.c korean.python ratio ----------- ----------------- ---------- EUC-KR: 0.05s 32.14s 64200 % (53 MUchar/s) (82.7 KUchar/s) CP949: 0.07s 32.60s 46500 % (38 MUchar/s) (81.5 KUchar/s) StreamReader ============ 1000 times with file that have 99 lines / 2901 bytes korean.c korean.python ratio ----------- ----------------- ---------- EUC-KR read(100): 0.03s 1.17s 3900 % (3.3MB/s) (85K/s) EUC-KR read(): 0.07s 27.00s 9310 % (41.4MB/s) (107K/s) EUC-KR readline()*5: 0.13s 1.60s 1230 % (38461 lines/s) (3125 lines/s) EUC-KR readlines(): 0.29s 27.51s 9486 % (10.0MB/s) (105K/s) |