xsum_bench.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #ifndef XSUM_BENCH_H
  26. #define XSUM_BENCH_H
  27. #include <stddef.h> /* size_t */
  28. #define NBLOOPS_DEFAULT 3 /* Default number of benchmark iterations */
  29. extern int const g_nbTestFunctions;
  30. extern char g_testIDs[]; /* size : g_nbTestFunctions */
  31. extern const char k_testIDs_default[];
  32. extern int g_nbIterations;
  33. int XSUM_benchInternal(size_t keySize);
  34. int XSUM_benchFiles(const char* fileNamesTable[], int nbFiles);
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* XSUM_BENCH_H */