Gabriella439 / bench

Command-line benchmark tool
BSD 3-Clause "New" or "Revised" License
872 stars 21 forks source link

--raw outputting hex/binary data #37

Open hashimaziz1 opened 6 years ago

hashimaziz1 commented 6 years ago

The documentation is schtum about this also, so I'm not sure, but is --raw FILE.txt supposed to output data that appears to be in binary/hex? I took "output raw data" to mean plain text results, as opposed to the HTML of -o. What form is --raw meant to output data in?

Gabriella439 commented 6 years ago

@Kaos-Industries: bench is a thin wrapper around Haskell's criterion package so it automatically inherits any options defined by the parser provided by that package. In this case the --raw option corresponds to the rawDataFile field of criterion's Config type here:

http://hackage.haskell.org/package/criterion-1.5.1.0/docs/Criterion-Types.html#t:Config

... and the documentation for that says:

File to write binary measurement and analysis data to. If not specified, this will be a temporary file.

So it sounds like it is supposed to be data formatted in binary that is almost an internal implementation detail. I don't know what the use case for that flag is.