spiko 0.1.16

🚀 Spiko is a fast, Rust-based load testing tool with a beautiful TUI for real-time insights.
Documentation
import { $ } from "bun";

let additional = [];

if (Bun.argv.length >= 3) {
    additional = Bun.argv.slice(2);
}

let server = null;

try {
    server = Bun.spawn(['cargo', 'run', '--release', '--manifest-path', 'pgo/server/Cargo.toml']);
    await $`cargo pgo run -- --profile pgo ${additional} -- -z 3m -c 900 --no-tui http://localhost:8888`;
    await $`cargo pgo optimize build -- --profile pgo ${additional}`
} finally {
    if (server !== null) {
        server.kill();
    }
}