# Lib unit
> To run performances test for your rust applications
* [Documentation](https://docs.rs/performances-testing/)
* [Report a bugs](https://github.com/taishingi/zuu/issues)
* [Source code](https://github.com/taishingi/zuu/tree/master/performances-testing)
* [Donate](https://www.paypal.com/donate/?hosted_button_id=LTYH2BXQF57AA)
* [Crate](https://crates.io/crates/performances-testing)
* [Getting cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
* [Rust guide](https://doc.rust-lang.org/cargo/guide/)
# Installation
```sh
cargo add performances-testing
```
## Configuration file
```toml
# Cargo.toml
[package]
name = "<package_name_here>"
version = "0.1.0"
edition = "2021"
description = "<package_description_here>"
license = "GPL-2.0-or-later"
repository = "<repository_url>"
documentation= "https://docs.rs/<package_name>"
[lib]
name = "<your_lib_name>"
path = "src/lib.rs"
crate-type = ["lib"]
test = true # Is tested by default.
doctest = true # Documentation examples are tested by default.
bench = true # Is benchmarked by default.
doc = true # Is documented by default.
harness = true # Use libtest harness.
[[bin]]
name = "performances-testing"
path = "src/bin.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
colored_truecolor = "0.1.0"
mockall = "0.11.3"
progress_bar = "1.0.3"
performances-testing = "0.0.3"
```
# Usage
```rust
#[macro_use]
extern crate maplit;
use performances::take;
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 ,
});
```
```shell
./target/debug/performances-testing
```
