I'm looking for a tool similar to pv which is producing machine readable output. I can't believe that nobody did it before.
I looked at the manpages of pv, pipemeter, dd and cpipe, but all these tools seem to format their output in a human-readable way.
Right now I'm considering modifying pipemeter and adding a flag to disable the formatbytes function but I would prefer some solution that that does not require development tools.
For example a perl solution would be acceptable, if it does not slow down the pipe. Unfortunately my perl skills are limited and so is my experience with pipes (from a developer perspective).
The reason why I want this is so I can create benchmarks which produce log files which can than be transferred to a central collecting unit where they will be parsed and stored in a database.