home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
sa104os2.zip
/
SATHR104.ZIP
/
SATHER
/
CONTRIB
/
HUU
/
TIMES
< prev
Wrap
Text File
|
1994-10-25
|
1KB
|
38 lines
=========== File 1 ==============================
Text file characteristics:
lines: 2558
words: 15378
chars: 102282
Test 1: Pattern = "l"
Total occurrences of "l" : 2602
Naive: 4.5u 0.2s 0:14 34% 0+592k 2+0io 15pf+0w
KMP : 4.4u 0.3s 0:15 31% 0+588k 13+0io 13pf+0w
Test 2: Pattern = "and"
Total occurrences of "and" : 336
Naive: 4.5u 0.4s 0:12 38% 0+580k 0+0io 0pf+0w
KMP : 4.1u 0.2s 0:10 42% 0+580k 0+0io 0pf+0w
Test 3: Pattern = "rr"
Total occurrences of "rr" : 94
Naive: 4.5u 0.4s 0:12 39% 0+580k 15+0io 27pf+0w
KMP : 4.1u 0.2s 0:10 40% 0+580k 0+0io 0pf+0w
Test 4: Pattern = "PRASSY"
Total occurrences of "PRASSY" : 130
Naive: 4.3u 0.2s 0:14 32% 0+580k 0+0io 0pf+0w
KMP : 4.0u 0.2s 0:14 30% 0+580k 0+0io 0pf+0w
=========== File 2 ==============================
Text file characteristics:
lines: 2305
words: 17280
chars: 156673
Test 5: Pattern = "computer"
Total occurrences of "computer" : 11520
Naive: 7.9u 0.4s 0:17 47% 0+744k 0+0io 0pf+0w
KMP : 7.6u 0.5s 0:15 51% 0+728k 22+0io 34pf+0w