#include "cpp.h"#include "config.h"#include <string>#include <sys/types.h>#include <sys/resource.h>#include <sys/wait.h>#include <csignal>#include <unistd.h>#include <cstdio>#include <cstdlib>#include <ctime>#include "error_numbers.h"#include "file_names.h"#include "filesys.h"#include "util.h"#include "cpu_benchmark.h"#include "client_msgs.h"#include "log_flags.h"#include "client_state.h"

Classes | |
| struct | BENCHMARK_DESC |
Defines | |
| #define | DEFAULT_FPOPS 1e9 |
| #define | DEFAULT_IOPS 1e9 |
| #define | DEFAULT_MEMBW 1e9 |
| #define | DEFAULT_CACHE 1e6 |
| #define | FP_START 2 |
| #define | FP_END 12 |
| #define | INT_START 17 |
| #define | INT_END 27 |
| #define | OVERALL_END 30 |
| #define | MIN_CPU_TIME 2 |
| #define | BM_FP_INIT 0 |
| #define | BM_FP 1 |
| #define | BM_INT_INIT 2 |
| #define | BM_INT 3 |
| #define | BM_SLEEP 4 |
| #define | BM_DONE 5 |
| #define | BENCHMARK_PERIOD (SECONDS_PER_DAY*5) |
Functions | |
| void | benchmark_wait_to_start (int which) |
| bool | benchmark_time_to_stop (int which) |
| int | cpu_benchmarks (BENCHMARK_DESC *bdp) |
| void | abort_benchmark (BENCHMARK_DESC &desc) |
| void | check_benchmark (BENCHMARK_DESC &desc) |
Variables | |
| const char * | file_names [2] = {"do_fp", "do_int"} |
| const char * | BOINC_RCSID_97ee090db0 = "$Id: cs_benchmark.cpp 16069 2008-09-26 18:20:24Z davea $" |
| #define BENCHMARK_PERIOD (SECONDS_PER_DAY*5) |
| #define BM_DONE 5 |
| #define BM_FP 1 |
| #define BM_FP_INIT 0 |
| #define BM_INT 3 |
| #define BM_INT_INIT 2 |
| #define BM_SLEEP 4 |
| #define DEFAULT_CACHE 1e6 |
| #define DEFAULT_FPOPS 1e9 |
| #define DEFAULT_IOPS 1e9 |
| #define DEFAULT_MEMBW 1e9 |
| #define FP_END 12 |
| #define FP_START 2 |
| #define INT_END 27 |
| #define INT_START 17 |
| #define MIN_CPU_TIME 2 |
| #define OVERALL_END 30 |
| void abort_benchmark | ( | BENCHMARK_DESC & | desc | ) |

| bool benchmark_time_to_stop | ( | int | which | ) |


| void benchmark_wait_to_start | ( | int | which | ) |


| void check_benchmark | ( | BENCHMARK_DESC & | desc | ) |


| int cpu_benchmarks | ( | BENCHMARK_DESC * | bdp | ) |


| const char* BOINC_RCSID_97ee090db0 = "$Id: cs_benchmark.cpp 16069 2008-09-26 18:20:24Z davea $" |
| const char* file_names[2] = {"do_fp", "do_int"} |
1.5.6