Stxxl  1.4.0
Defines | Functions
io/benchmark_disk_and_flash.cpp File Reference
#include <iomanip>
#include <vector>
#include <stxxl/io>
#include <stxxl/aligned_alloc>
#include <unistd.h>
Include dependency graph for benchmark_disk_and_flash.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)

Functions

void run (char *buffer, file **disks, stxxl::int64 offset, stxxl::int64 length, unsigned hdd_blocks, unsigned hdd_bytes, unsigned ssd_blocks, unsigned ssd_bytes, unsigned repeats)
void usage (const char *argv0)
int main (int argc, char *argv[])

Define Documentation

#define BLOCK_ALIGN   4096

Definition at line 33 of file benchmark_disk_and_flash.cpp.

#define GB   (1024 * 1024 * 1024)

Definition at line 37 of file benchmark_disk_and_flash.cpp.

Referenced by main().

#define KB   (1024)

Definition at line 35 of file benchmark_disk_and_flash.cpp.

Referenced by main().

#define MB   (1024 * 1024)

Definition at line 36 of file benchmark_disk_and_flash.cpp.

Referenced by main(), and run().


Function Documentation

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

Definition at line 101 of file benchmark_disk_and_flash.cpp.

References buffer_size, GB, KB, MB, run(), stxxl::STXXL_MAX(), and usage().

void run ( char *  buffer,
file **  disks,
stxxl::int64  offset,
stxxl::int64  length,
unsigned  hdd_blocks,
unsigned  hdd_bytes,
unsigned  ssd_blocks,
unsigned  ssd_bytes,
unsigned  repeats 
)
void usage ( const char *  argv0)

Definition at line 93 of file benchmark_disk_and_flash.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines