add .gitignore
[ftsbench.git] / README
1 Full-text search benchmark.
2
3 Set RDBMS and paths in Makefile before compilation.
4
5 Initialization example:
6 ./ftsbench -i -n 10000 -f gin -b pgsql -d contrib_regression
7
8 Benchmark example:
9 ./ftsbench -c 10 -n 300 -f gin -b pgsql -d contrib_regression
10
11
12 PostgreSQL prerequisite:
13         version >= 8.2
14         ./configure --enable-thread-safety
15         contrib/tsearch2
16
17 MySQL prerequisite:
18         tested on 5.0.24a
19         ./configure --enable-thread-safe-client --with-pthread
20
21 SQL mode (output may be redirected to file or database):
22 % ftsbench -S | psql postgres
23 % ftsbench -i -n 10 -f gin -s 17 -d contrib_regression
24 INSERT INTO fb_create (id, rdbms, f_gin, f_gist, f_func, rows, elapsed) VALUES (17, 'pgsql', 't', 'f', 'f', 10, 0.528075);
25 % ftsbench  -c 2 -n 2 -f gin -s 17 -d contrib_regression
26 INSERT INTO fb_search (id, f_and, f_or, nclients, nqueries, nres, elapsed) VALUES (17, 't', 'f', 2, 2, 0, 0.063508);
27 % ftsbench  -c 2 -n 2 -f gin -s 17 -r -d contrib_regression
28 INSERT INTO fb_row (id, f_and, f_or, nclients, nres, elapsed) VALUES (17, 't', 'f', 2, 0, 0.039024);
29 INSERT INTO fb_row (id, f_and, f_or, nclients, nres, elapsed) VALUES (17, 't', 'f', 2, 1, 0.009069);
30 INSERT INTO fb_row (id, f_and, f_or, nclients, nres, elapsed) VALUES (17, 't', 'f', 2, 0, 0.061368);
31 INSERT INTO fb_row (id, f_and, f_or, nclients, nres, elapsed) VALUES (17, 't', 'f', 2, 3, 0.003654);
32
33
34
35 Notice:
36 Although ftsbench is covered by BSD license redistribution of 
37 rand.c and finnegan.c is prohibited without the permission 
38 of J. Zobel (jz at cs.rmit.edu.au).