[KoCo-CVS] [Commit] KoreanCodecs/doc benchmarks.txt
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-04-28 19:45:43
|
perky 02/04/28 04:35:35 Modified: doc benchmarks.txt Log: - Add hangul tests Revision Changes Path 1.2 +27 -3 KoreanCodecs/doc/benchmarks.txt Index: benchmarks.txt =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/doc/benchmarks.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- benchmarks.txt 28 Apr 2002 07:44:23 -0000 1.1 +++ benchmarks.txt 28 Apr 2002 11:35:34 -0000 1.2 @@ -1,7 +1,7 @@ ROUGH Benchmark Tests (just for fun ;) -------------------------------------- -$Id: benchmarks.txt,v 1.1 2002/04/28 07:44:23 perky Exp $ +$Id: benchmarks.txt,v 1.2 2002/04/28 11:35:34 perky Exp $ CPU: Intel Pentium III 800 OS: FreeBSD 4.5 @@ -46,10 +46,10 @@ korean.c korean.python ratio ----------- ----------------- ---------- EUC-KR read(100): 0.03s 1.17s 3900 % - (3.3MB/s) (85K/s) + (3.26MB/s) (85K/s) EUC-KR read(): 0.07s 27.00s 9310 % - (41.4MB/s) (107K/s) + (38.9MB/s) (107K/s) EUC-KR readline()*5: 0.13s 1.60s 1230 % (38461 lines/s) (3125 lines/s) @@ -57,5 +57,29 @@ EUC-KR readlines(): 0.29s 27.51s 9486 % (10.0MB/s) (105K/s) +CP949 read(100): 0.03s 1.12s 3844 % + (3.26MB/s) (0.08MB/s) +CP949 read(): 0.06s 30.00s 5000 % + (40.7MB/s) (0.09MB/s) + +CP949 readline()*5: 0.07s 2.02s 2612 % + (71428 lines/s) (2475 lines/s) + +CP949 readlines(): 0.19s 45.59s 23309 % + (14.56MB/s) (0.06MB/s) + + +Hangul +====== + +10000 times + + korean.c korean.python ratio + ----------- ----------------- ---------- +hangul.join: 0.19s 3.06s 15396 % + (52631 op/s) (3267 op/s) + +hangul.split: 0.26s 6.50s 24753 % + (38461 op/s) (1537 op/s) |