Stxxl  1.4.0
Defines | Functions
io/benchmark_random_block_access.cpp File Reference
#include <iomanip>
#include <vector>
#include <stxxl/io>
#include <stxxl/mng>
#include <unistd.h>
Include dependency graph for benchmark_random_block_access.cpp:

Go to the source code of this file.

Defines

#define BLOCK_ALIGN   4096
#define KB   (1024)
#define MB   (1024 * 1024)
#define GB   (1024 * 1024 * 1024)
#define run(bs)   run_test<bs>(span, num_blocks, do_init, do_read, do_write)

Functions

void usage (const char *argv0)
template<unsigned BlockSize>
void run_test (stxxl::int64 span, stxxl::int64 num_blocks, bool do_init, bool do_read, bool do_write)
int main (int argc, char *argv[])

Define Documentation

#define BLOCK_ALIGN   4096

Definition at line 43 of file benchmark_random_block_access.cpp.

#define GB   (1024 * 1024 * 1024)

Definition at line 48 of file benchmark_random_block_access.cpp.

#define KB   (1024)

Definition at line 46 of file benchmark_random_block_access.cpp.

Referenced by main().

#define MB   (1024 * 1024)

Definition at line 47 of file benchmark_random_block_access.cpp.

Referenced by main(), and run_test().

#define run (   bs)    run_test<bs>(span, num_blocks, do_init, do_read, do_write)

Referenced by main().


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 164 of file benchmark_random_block_access.cpp.

References block_size, KB, MB, run, and usage().

template<unsigned BlockSize>
void run_test ( stxxl::int64  span,
stxxl::int64  num_blocks,
bool  do_init,
bool  do_read,
bool  do_write 
)
void usage ( const char *  argv0)

Definition at line 50 of file benchmark_random_block_access.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines