Skip to main content

webgraph_cli/bench/
mod.rs

1/*
2 * SPDX-FileCopyrightText: 2023 Tommaso Fontana
3 * SPDX-FileCopyrightText: 2026 Sebastiano Vigna
4 *
5 * SPDX-License-Identifier: Apache-2.0 OR MIT
6 */
7
8use anyhow::Result;
9use clap::Subcommand;
10
11pub mod bf_visit;
12pub mod bvgraph;
13
14#[derive(Subcommand, Debug)]
15#[command(name = "bench")]
16/// Benchmarking utilities.​
17pub enum SubCommands {
18    Bvgraph(bvgraph::CliArgs),
19    BFVisit(bf_visit::CliArgs),
20}
21
22pub fn main(subcommand: SubCommands) -> Result<()> {
23    match subcommand {
24        SubCommands::Bvgraph(args) => bvgraph::main(args),
25        SubCommands::BFVisit(args) => bf_visit::main(args),
26    }
27}