|
Stxxl
1.4.0
|
#include <iomanip>#include <vector>#include <stxxl/io>#include <stxxl/aligned_alloc>#include <stxxl/timer>#include <stxxl/bits/version.h>
Go to the source code of this file.
Defines | |
| #define | BLOCK_ALIGN 4096 |
| #define | POLL_DELAY 1000 |
| #define | RAW_ACCESS |
| #define | MB (1024 * 1024) |
| #define | GB (1024 * 1024 * 1024) |
Functions | |
| void | usage (const char *argv0) |
| double | throughput (double bytes, double seconds) |
| int | main (int argc, char *argv[]) |
Variables | |
| const char * | default_file_type = "syscall" |
| #define BLOCK_ALIGN 4096 |
Definition at line 43 of file benchmark_disks.cpp.
| #define GB (1024 * 1024 * 1024) |
Definition at line 100 of file benchmark_disks.cpp.
Referenced by main().
| #define MB (1024 * 1024) |
Definition at line 99 of file benchmark_disks.cpp.
Referenced by main().
| #define POLL_DELAY 1000 |
Definition at line 49 of file benchmark_disks.cpp.
| #define RAW_ACCESS |
Definition at line 51 of file benchmark_disks.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 134 of file benchmark_disks.cpp.
References block_size, stxxl::create_file(), default_file_type, stxxl::div_ceil(), GB, stxxl::get_version_string(), MB, stxxl::file::set_size(), stxxl::STXXL_MAX(), throughput(), stxxl::timestamp(), usage(), and stxxl::wait_all().
| double throughput | ( | double | bytes, |
| double | seconds | ||
| ) | [inline] |
Definition at line 127 of file benchmark_disks.cpp.
Referenced by main().
| void usage | ( | const char * | argv0 | ) |
Definition at line 102 of file benchmark_disks.cpp.
References default_file_type.
| const char* default_file_type = "syscall" |
Definition at line 59 of file benchmark_disks.cpp.
1.7.6.1