1use clap::Parser;
2use eyre::Result;
3use openvm_benchmarks_prove::util::BenchmarkCli;
4use openvm_sdk::{
5 config::{SdkVmBuilder, SdkVmConfig},
6 StdIn,
7};
8use openvm_stark_sdk::bench::run_with_metric_collection;
9
10fn main() -> Result<()> {
11 let args = BenchmarkCli::parse();
12
13 let config =
14 SdkVmConfig::from_toml(include_str!("../../../guest/bincode/openvm.toml"))?.app_vm_config;
15 let elf = args.build_bench_program("bincode", &config, None)?;
16 run_with_metric_collection("OUTPUT_PATH", || -> Result<()> {
17 let file_data = include_bytes!("../../../guest/bincode/minecraft_savedata.bin");
18 let stdin = StdIn::from_bytes(file_data);
19 args.bench_from_exe::<SdkVmBuilder, _>("bincode", config, elf, stdin)
20 })
21}