From 4a16da26dacdb37b9ef8d3d11e10ecb94b0cf396 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 3 Jul 2024 15:05:10 +0200 Subject: renamed benchmarks to tools --- benchmark/00_gendata_h48/gendata_h48_benchmark.c | 42 ------------------------ 1 file changed, 42 deletions(-) delete mode 100644 benchmark/00_gendata_h48/gendata_h48_benchmark.c (limited to 'benchmark/00_gendata_h48') diff --git a/benchmark/00_gendata_h48/gendata_h48_benchmark.c b/benchmark/00_gendata_h48/gendata_h48_benchmark.c deleted file mode 100644 index 1dc7c57..0000000 --- a/benchmark/00_gendata_h48/gendata_h48_benchmark.c +++ /dev/null @@ -1,42 +0,0 @@ -#include "../benchmark.h" -#include "../../src/cube.h" - -#define MAXDEPTH 10 -#define HVALUE 2 -#define OPTIONS "2;10" -#define LONGOPTIONS "h = 2, max depth = 10" - -char *buf; - -void run(void) { - uint32_t *buf32; - int i; - int64_t s; - - s = nissy_gendata("H48", OPTIONS, buf); - - if (s == -1) { - printf("Error generating table\n"); - } else { - printf("Succesfully generated %" PRId64 " bytes. Table:\n", s); - buf32 = (uint32_t *)&buf[s-sizeof(uint32_t)*(MAXDEPTH+1)]; - for (i = 0; i <= MAXDEPTH; i++) - printf("%d:\t%" PRId32 "\n", i, buf32[i]); - } -} - -int main() { - int64_t size; - - size = nissy_datasize("H48", OPTIONS); - if (size == -1) { - printf("gendata_h48 benchmark: error in datasize\n"); - return 1; - } - - buf = malloc(size); - - time_benchmark(run, "gendata_h48 " LONGOPTIONS); - - return 0; -} -- cgit v1.3