| 1 |
/* |
| 2 |
* xsum_bench - Benchmark functions for xxhsum |
| 3 |
* Copyright (C) 2013-2021 Yann Collet |
| 4 |
* |
| 5 |
* GPL v2 License |
| 6 |
* |
| 7 |
* This program is free software; you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU General Public License as published by |
| 9 |
* the Free Software Foundation; either version 2 of the License, or |
| 10 |
* (at your option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License along |
| 18 |
* with this program; if not, write to the Free Software Foundation, Inc., |
| 19 |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 |
* |
| 21 |
* You can contact the author at: |
| 22 |
* - xxHash homepage: https://www.xxhash.com |
| 23 |
* - xxHash source repository: https://github.com/Cyan4973/xxHash |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef XSUM_BENCH_H |
| 27 |
#define XSUM_BENCH_H |
| 28 |
|
| 29 |
#include <stddef.h> /* size_t */ |
| 30 |
|
| 31 |
#define NBLOOPS_DEFAULT 3 /* Default number of benchmark iterations */ |
| 32 |
|
| 33 |
extern int const g_nbTestFunctions; |
| 34 |
extern char g_testIDs[]; /* size : g_nbTestFunctions */ |
| 35 |
extern const char k_testIDs_default[]; |
| 36 |
extern int g_nbIterations; |
| 37 |
|
| 38 |
int XSUM_benchInternal(size_t keySize); |
| 39 |
int XSUM_benchFiles(const char* fileNamesTable[], int nbFiles); |
| 40 |
|
| 41 |
|
| 42 |
#ifdef __cplusplus |
| 43 |
extern "C" { |
| 44 |
#endif |
| 45 |
|
| 46 |
|
| 47 |
#ifdef __cplusplus |
| 48 |
} |
| 49 |
#endif |
| 50 |
|
| 51 |
#endif /* XSUM_BENCH_H */ |