#benchmark #async #async-test #bench #test

malory

A tool to benchmark Async Functions (Futures)

3 unstable releases

0.2.1 Jan 20, 2021
0.2.0 Jan 20, 2021
0.1.0 Jan 11, 2021

#1290 in Development tools

MIT license

4KB

Malory

Crates.io MIT licensed Build Status

Malory is a rust async benchmarking tool using Tokio.

Usage

use malory;

#[tokio::main]
fn main() {
  let iterations = 1000;
  let parallelism = 5;
  let context = "That's how you get ants.";

  malory::judge_me(iterations, parallelism, context, |ctx, i| async { true }).await;
}

Dependencies

~3–14MB
~127K SLoC