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