WebAppPerformanceTesting
- Performance / Load testing web application.
- Old School - Opensource is jmeter - Java XML based
- use something fast - e.g. Rust
- drill - very simple - some bugs errors when tested
- goose - Nice - rust lib.rs that you include and then compile a test.
e.g. app
use goose::prelude::*; #[tokio::main] async fn main() -> Result<(), GooseError> { GooseAttack::initialize()? .register_scenario(scenario!("LoadtestTransactions") .register_transaction(transaction!(loadtest_index)) ) .execute() .await?; Ok(()) } async fn loadtest_index(user: &mut GooseUser) -> TransactionResult { let _goose_metrics = user.get("").await?; Ok(()) }
run with $ cargo run -- --host https://microsoft.com/ -u 2 -s 10