bench.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. bench.h - Demo program to benchmark open-source compression algorithm
  3. Copyright (C) Yann Collet 2012
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License along
  13. with this program; if not, write to the Free Software Foundation, Inc.,
  14. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  15. You can contact the author at :
  16. - LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html
  17. - LZ4 source repository : http://code.google.com/p/lz4/
  18. */
  19. #pragma once
  20. #if defined (__cplusplus)
  21. extern "C" {
  22. #endif
  23. int BMK_benchFile(char** fileNamesTable, int nbFiles, int cLevel);
  24. // Parameters
  25. void BMK_SetBlocksize(int bsize);
  26. void BMK_SetNbIterations(int nbLoops);
  27. void BMK_SetPause();
  28. #if defined (__cplusplus)
  29. }
  30. #endif