cygrind-utils 0.2.1

A utility crate for handling, parsing, and drawing cybergrind patterns from ULTRAKILL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use criterion::{criterion_group, criterion_main, Criterion, Throughput};
use cygrind_utils::parser::parse;

pub fn criterion_benchmark(c: &mut Criterion) {
    let src = include_str!("../example.cgp");
    let mut g = c.benchmark_group("Parse");
    g.throughput(Throughput::Bytes(src.len() as u64));
    g.bench_function("parse", |b| b.iter(|| parse(src)));
}

criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);