Giter Site home page Giter Site logo

microbench's Introduction

Microbench Banner

Microbench

Microbench is a lightweight and accurate benchmarking program for command-line utilities. Written in Nim, it's a great way to easily check how long your programs are taking to run.

Quick Start

Install Microbench by visiting the Releases page and installing the latest binary. Make sure you add it to your PATH so it's accessible from anywhere.

To benchmark a program with Microbench, you can run microbench <command to benchmark ...>, and Microbench will tell you how long it took to run down to the millisecond. However, if you want additional information, you can specify how many iterations to use by running microbench [-i, --iterations] <iteration count> <command to benchmark ...>, and Microbench will give you a mean, minimum, maximum, and standard deviation.

For example, to benchmark my program NimTrains, I could run microbench -i 100 nimtrains EXD, which would run the command nimtrains EXD one hundred times and time them. The output from that command would look something like this:

== MICROBENCH RESULTS FOR: "nimtrains EXD" ==

  Mean running time: 14.76 ms
  Minimum running time: 12.0 ms
  Maximum running time: 34.0 ms
  Standard deviation of running times: 3.9876 ms

microbench's People

Contributors

w-henderson avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.