Skip to content

htorianik/simple_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple graph

Abstract

Motivation

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.

About

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.

Installation

Building from source

Requirements
Compiling
$ git clone https://github.com/D34DStone/simple_graph && cd simple_graph
$ ./configure && make && make install

Uninstall

$ make uninstall

Using (0.1.0)

Help

To 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]

Graphing

In the root of the repository I have two test files: double.csv and float.csv. To compare them you should simple run

$ sg *.csv

double-float-comparison

Also, some customization is available:

$ sg *.csv --average 10 --res_x 1024 --res_y 256

double-float-comparison-advanced

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published