blob: 0bcf66a1ed31c25fc1ef6cf99bc28757c5b20eeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
HOW TO USE
1. Copy _site/cgi-bin/see.sh to _site/log/
2. Set the directory counta (TOTAL)
3. Run script ./seed.sh
4. In _site/cgi_bin/ execute indexer script (e.g., perl sa_indexer.pl)
5. Run search query: QUERY_STRING="q=ard" perl find_sa_mmap.cgi
Directory structure:
.
|-- seed.sh (Shell script)
|-- benchmark.pl (The runner we just wrote)
|-- _site
| |-- cgi-bin
| | |-- indexer.pl (Creates the SA index)
| | |-- find_sa.cgi (Suffix Array search)
| | `-- find_regex.cgi (Regex search)
| `-- log/ (Created by seed.sh)
chmod +x seed.sh benchmark.pl _site/cgi-bin/*.cgi _site/cgi-bin/*.pl
|