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