Copy the sources of rsvg-bench to here.
For @aryacollection.hsp's Outreachy internship, we'll need a way to have a benchmark that uses an exact librsvg commit. So, instead of messing around with cargo options to use an exact commit for the crate, let's build the benchmark into the librsvg source tree.
I think we can retire the separate rsvg-bench project now, and just keep it inside librsvg's source tree.
I've done a few changes:
- Port from structopt to clap.
- Port from failure to anyhow/thiserror.
- Changed the defaults of the
--num-parse
and--num-render
options to 1, instead of 100 - to help Shinigami's automatic collector. - Removed short options, just kept the long ones. This tool is intended to be called from scripts, and those scripts will be easier to read if they use long options.