xapian-core  1.4.25
Classes | Functions | Variables
perftest.cc File Reference

performance tests for Xapian. More...

#include <config.h>
#include "perftest.h"
#include "backendmanager.h"
#include "freemem.h"
#include "omassert.h"
#include "perftest/perftest_all.h"
#include "realtime.h"
#include "runprocess.h"
#include "str.h"
#include "stringutils.h"
#include "testrunner.h"
#include "testsuite.h"
#include <cstdlib>
#include <iostream>
#include "safeunistd.h"
#include "perftest/perftest_collated.h"
+ Include dependency graph for perftest.cc:

Go to the source code of this file.

Classes

class  PerfTestRunner
 

Functions

static string escape_xml (const string &str)
 
static string get_hostname ()
 Get the hostname. More...
 
static string get_loadavg ()
 Get the load average. More...
 
static string get_ncpus ()
 Get the number of processors. More...
 
static string get_distro ()
 Get details of the OS and distribution. More...
 
static string get_commit_ref ()
 Get the git commit for HEAD. More...
 
int main (int argc, char **argv)
 

Variables

PerfTestLogger logger
 

Detailed Description

performance tests for Xapian.

Definition in file perftest.cc.

Function Documentation

◆ escape_xml()

static string escape_xml ( const string &  str)
static

◆ get_commit_ref()

static string get_commit_ref ( )
static

Get the git commit for HEAD.

Definition at line 224 of file perftest.cc.

References stdout_to_string().

Referenced by PerfTestLogger::open().

◆ get_distro()

static string get_distro ( )
static

Get details of the OS and distribution.

Definition at line 189 of file perftest.cc.

References stdout_to_string(), and Xapian::Internal::str().

Referenced by PerfTestLogger::open().

◆ get_hostname()

static string get_hostname ( )
static

Get the hostname.

Definition at line 94 of file perftest.cc.

Referenced by PerfTestLogger::open().

◆ get_loadavg()

static string get_loadavg ( )
static

Get the load average.

Definition at line 129 of file perftest.cc.

References stdout_to_string().

Referenced by PerfTestLogger::open().

◆ get_ncpus()

static string get_ncpus ( )
static

Get the number of processors.

Definition at line 146 of file perftest.cc.

References stdout_to_string(), and Xapian::Internal::str().

Referenced by PerfTestLogger::open().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 472 of file perftest.cc.

References PerfTestLogger::open(), and TestRunner::run_tests().

Variable Documentation

◆ logger

Definition at line 52 of file perftest.cc.

Referenced by builddb_valuestest1(), and DEFINE_TESTCASE().