= WebAppPerformanceTesting =

 * Performance / Load testing web application.

 * Old School - Opensource is jmeter - Java XML based


 * use something fast - e.g. Rust
   1. drill - very simple - some bugs errors when tested

   2. goose - Nice - rust lib.rs that you include and then compile a test.
      * https://github.com/tag1consulting/goose
      * 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
----
CategoryPerformance