"Fossies" - the Fresh Open Source Software Archive

Member "xxHash-0.8.0/tests/bench/bhDisplay.h" (27 Jul 2020, 1956 Bytes) of package /linux/misc/xxHash-0.8.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "bhDisplay.h": 0.7.3_vs_0.7.4.

    1 /*
    2 *  CSV Display module for the hash benchmark program
    3 *  Part of the xxHash project
    4 *  Copyright (C) 2019-2020 Yann Collet
    5 *
    6 *  GPL v2 License
    7 *
    8 *  This program is free software; you can redistribute it and/or modify
    9 *  it under the terms of the GNU General Public License as published by
   10 *  the Free Software Foundation; either version 2 of the License, or
   11 *  (at your option) any later version.
   12 *
   13 *  This program is distributed in the hope that it will be useful,
   14 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   15 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16 *  GNU General Public License for more details.
   17 *
   18 *  You should have received a copy of the GNU General Public License along
   19 *  with this program; if not, write to the Free Software Foundation, Inc.,
   20 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
   21 *
   22 *  You can contact the author at:
   23 *  - xxHash homepage: https://www.xxhash.com
   24 *  - xxHash source repository: https://github.com/Cyan4973/xxHash
   25 */
   26 
   27 #ifndef BH_DISPLAY_H_192088098
   28 #define BH_DISPLAY_H_192088098
   29 
   30 #if defined (__cplusplus)
   31 extern "C" {
   32 #endif
   33 
   34 
   35 /* ===  Dependencies  === */
   36 
   37 #include "benchfn.h"   /* BMK_benchFn_t */
   38 
   39 
   40 /* ===  Declarations  === */
   41 
   42 typedef struct {
   43     const char* name;
   44     BMK_benchFn_t hash;
   45 } Bench_Entry;
   46 
   47 void bench_largeInput(Bench_Entry const* hashDescTable, int nbHashes, int sizeLogMin, int sizeLogMax);
   48 
   49 void bench_throughput_smallInputs(Bench_Entry const* hashDescTable, int nbHashes, size_t sizeMin, size_t sizeMax);
   50 void bench_throughput_randomInputLength(Bench_Entry const* hashDescTable, int nbHashes, size_t sizeMin, size_t sizeMax);
   51 
   52 void bench_latency_smallInputs(Bench_Entry const* hashDescTable, int nbHashes, size_t sizeMin, size_t sizeMax);
   53 void bench_latency_randomInputLength(Bench_Entry const* hashDescTable, int nbHashes, size_t sizeMin, size_t sizeMax);
   54 
   55 
   56 
   57 #if defined (__cplusplus)
   58 }
   59 #endif
   60 
   61 #endif   /* BH_DISPLAY_H_192088098 */