From a739f196cba9e5c4376e97b1ac95e1d15b1ccb55 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sun, 23 Dec 2018 23:54:25 -0600 Subject: Remove orig content. --- includes/benchmark.h | 55 ---------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 includes/benchmark.h (limited to 'includes/benchmark.h') diff --git a/includes/benchmark.h b/includes/benchmark.h deleted file mode 100644 index 277f0c07..00000000 --- a/includes/benchmark.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef __BENCHMARK_H__ -#define __BENCHMARK_H__ - -#include "hardinfo.h" - -extern ProgramParameters params; - -enum { - BENCHMARK_BLOWFISH, - BENCHMARK_CRYPTOHASH, - BENCHMARK_FIB, - BENCHMARK_NQUEENS, - BENCHMARK_ZLIB, - BENCHMARK_FFT, - BENCHMARK_RAYTRACE, - BENCHMARK_GUI, - BENCHMARK_N_ENTRIES -} BenchmarkEntries; - -void benchmark_bfish(void); -void benchmark_cryptohash(void); -void benchmark_fft(void); -void benchmark_fib(void); -void benchmark_fish(void); -void benchmark_gui(void); -void benchmark_nqueens(void); -void benchmark_raytrace(void); -void benchmark_zlib(void); - -typedef struct { - double result; - double elapsed_time; - int threads_used; -} bench_value; - -#define EMPTY_BENCH_VALUE {-1.0f,0,0} - -char *bench_value_to_str(bench_value r); -bench_value bench_value_from_str(const char* str); - -/* Note: - * benchmark_parallel_for(): element [start] included, but [end] is excluded. - * callback(): expected to processes elements [start] through [end] inclusive. - */ -bench_value benchmark_parallel_for(gint n_threads, guint start, guint end, - gpointer callback, gpointer callback_data); - -bench_value benchmark_parallel(gint n_threads, gpointer callback, gpointer callback_data); - -bench_value benchmark_crunch_for(float seconds, gint n_threads, - gpointer callback, gpointer callback_data); - -extern bench_value bench_results[BENCHMARK_N_ENTRIES]; - -#endif /* __BENCHMARK_H__ */ -- cgit v1.2.3