Once I was writing a C++ code to test the performance boost by SIMP and parallel execution.
When I finished two sources with a small optimization in the second, I decided to compare
their performance. I googled cli build plot, google gave me these two nice libraries:
cli-plot and
cli-graph.
But, in my humble opinion, there is one big problem in each one: nodejs and python corresponding.
I don't want to deal with 20+ Mb of dependecies, third-party runtimes when I just need to compare
performace of two programs. So I decided to write such program by my own.
What we are trying to achieve:
- Modern and high-level technology (as C++ 17).
- Easy to install, execute, uninstall.
- No huge runtime, native execution. Size of the binary file excepted to be less then 1 Mb.
- Easy to build and distribute in any popular platform.
- UNIX-like cli interface.
$ git clone https://github.com/D34DStone/simple_graph && cd simple_graph
$ ./configure && make && make install$ make uninstallTo watch a short info about the utility just run it with --help option:
$ sg --help
simple_graph, version 0.1.0
usage: simple_graph [fname ...] [-a <integer>] [-x <integer>] [-y <integer>] [-s <char>] [-h]In the root of the repository I have two test files: double.csv and float.csv. To compare them you should simple run
$ sg *.csvAlso, some customization is available:
$ sg *.csv --average 10 --res_x 1024 --res_y 256
