wasm4pm 26.6.12

High-performance process mining algorithms in WebAssembly for JavaScript/TypeScript
Documentation
// Auto-generated by CodeManufactory from wasm4pm ontology
// DO NOT EDIT — regenerate via: ostar manufacture wasm4pm

use serde::{Deserialize, Serialize};

/// Benchmark specs from ontology.
/// 0 benchmarks total.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct BenchmarkSpec {
    pub id: &'static str,
    pub label: &'static str,
}

pub const BENCHMARK_SPECS: &[BenchmarkSpec] = &[];

impl BenchmarkSpec {
    pub fn all_names() -> Vec<&'static str> {
        BENCHMARK_SPECS.iter().map(|b| b.label).collect()
    }

    pub fn by_label(label: &str) -> Option<&'static BenchmarkSpec> {
        BENCHMARK_SPECS.iter().find(|b| b.label == label)
    }
}