Manak  2.0.0
Installing and Using Manak

Supported Compilers

Manak is tested on following compilers -

  • GNU G++(>= 4.7)
  • LLVM Clang++ (>= 3.2)
  • Visual Studio(>= 2012)

Installing On Linux(or like environments)

Manak has no dependencies and can work as header only.

and Installing with CMake

  • Download and extract the source into folder.
  • cd into that directory
  • mkdir build
  • cd build
  • cmake ../
  • sudo make install

This will install Manak header files into /usr/local/includes. To generate this documentation run command 'make doc' in build.

Installation

You can just copy the 'manak' folder(./src/manak) into the directory of your choice. While compiling, don't forget to add that directory to the compilers search path. Use CMake build for use with dynamic linkage.

Installing on Windows

with CMake

You can download CMake GUI for Windows and install Manak with it.

Installation

Sometimes working with CMake on Windows is really confusing. So if you are using Visual Studio environment of MinGW environment you can just copy the 'manak' folder (./src/manak) into the default search path of your environment. To build Manak for dynamic linkage you have to use CMake for windows.

Using Manak

To use manak you only have to add manak.hpp to your project, which will let you use all the macros and functions available. But before including manak.hpp you should set the environment for Manak. See Setting Environment. Check out Using Manak Effectively in Multi File Project to use Manak in multi file projects.

#include <iostream>
Set Manak environment;
#include <manak/manak.hpp>

Manak can be used both with static linkage and dynamic linkage. The default is static linkage. To use Manak with dynamic linkage -

#include <iostream>
Set Manak environment;
#define MANAK_USE_DYN_LINK
#include <manak/manak.hpp>

With this you need to provide the shared object generated in build to the linker. If you have installed Manak to one of the default directories, passing option '-lmanak' should work.

Command Line Arguments

The following are the command line arguments available for any Manak generated executable.

  • '-h': Print help
  • '-s <filename>': Save the generated for later comparisons. See Comparison Framework for more information.
  • '-c <filename>': Load previously saved benchmarks for comparison. See Comparison Framework for more information.
  • '-r <regex>': Run benchmark cases matching given regex. See Running Specific Cases for more information.
  • '-f <format>: Change format of default output. Available formats are "HTML" and "TXT". Default is set to "HTML". See All About Outputs for more information.
  • '-o <filename>: Redirect the output to given file. See Setting Options For Output File for more information.
  • '-v': Get version information