performances-testing 0.0.7

A performances testing library
Documentation

Lib unit

To run performances test for your rust applications

Installation

cargo add performances-testing

Usage


#[macro_use]
extern crate maplit;

use performances::take;

fn kool() -> bool
{
    return false;
}

fn look() -> bool
{
    return true;
}

fn s() -> i32
{
    return 0;
}

fn f() -> i32
{
    return 1;
}

fn get_fans() -> i32
{
    return 5;
}
take!(hashmap!{
            "f" => f as fn() -> i32,
            "s" => s as fn() -> i32,
            "get_fans" => get_fans as fn() -> i32,
        });

take!(hashmap!{
            "kool" => kool as fn() -> bool,
            "look" => look as fn() -> bool,
        });

take!(hashmap!{
            "pause" => pause ,
        });
./target/debug/performances-testing

Performances testing output