Add benchmark framework for testing compression algos
[platform/core/system/dlog.git] / src / tests / test_compression_common.h
1 #ifndef TEST_COMPRESSION_COMMON_H
2 #define TEST_COMPRESSION_COMMON_H
3
4 #include <stddef.h>
5
6 #define WARMUP_CALLS  10
7 #define ACTUAL_CALLS 100
8
9 struct common_compressed {
10         size_t size_compressed;
11 };
12
13 struct test_algo {
14         struct timespec (*comp)(char *in, size_t in_size, struct common_compressed **out);
15         struct timespec (*decomp)(struct common_compressed *in, char **out, size_t *out_size);
16 };
17
18 #endif