Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
readspeed.cxx
Go to the documentation of this file.
1// Author: Enrico Guiraud, David Poulton 2022
2
3/*************************************************************************
4 * Copyright (C) 1995-2022, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#include "ReadSpeedCLI.hxx"
12#include "ReadSpeed.hxx"
13
14using namespace ReadSpeed;
15
16int main(int argc, char **argv)
17{
18 auto args = ParseArgs(argc, argv);
19
20 if (!args.fShouldRun)
21 return 1; // ParseArgs has printed the --help, has run the --test or has encountered an issue and logged about it
22
23 PrintThroughput(EvalThroughput(args.fData, args.fNThreads));
24
25 return 0;
26}
int main()
void PrintThroughput(const Result &r)
Args ParseArgs(const std::vector< std::string > &args)
Result EvalThroughput(const Data &d, unsigned nThreads)