42 for (
unsigned i = 0; i < num_values; ++i) {
63 for (
int c = 0; c < 100; ++c) {
65 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.
Class representing a document.
void add_value(Xapian::valueno slot, std::string_view value)
Add a value to a slot in this document.
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 pending modifications.
Xapian::docid add_document(const Xapian::Document &doc)
Add a 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.