43 for (
unsigned i = 0; i < num_values; ++i) {
64 for (
int c = 0; c < 100; ++c) {
66 for (
unsigned i = 0; i < num_subqs; ++i) {
DEFINE_TESTCASE(bigoaddvalue1, writable)
static double bigoaddvalue1_helper(unsigned num_values)
static double querypairwise1_helper(unsigned num_subqs)
Xapian::WritableDatabase get_writable_database(const string &dbname)
test functionality of the Xapian API
double get_time() const
Return elapsed CPU time since object creation in seconds.
A handle representing a document in a Xapian database.
void add_value(Xapian::valueno slot, const std::string &value)
Add a new value.
Class representing a query.
@ OP_OR
Match documents which at least one subquery matches.
This class provides read/write access to a database.
void commit()
Commit any pending modifications made to the database.
Xapian::docid add_document(const Xapian::Document &document)
Add a new document to the database.
string str(int value)
Convert int to std::string.
void test_scalability(double(*func)(unsigned), unsigned n, double threshold)
Test how an operation scales.
Convert types to std::string.
a generic test suite engine
Xapian-specific test helper functions and macros.
Public interfaces for the Xapian library.