use redline::redline;

#[redline(latency = "< 100ms")]
fn matrix_multiply_small() -> u64 {
    let mut result: u64 = 0;
    for i in 0..10 {
        for j in 0..10 {
            result += i * j;
        }
    }
    result
}

#[redline(latency = "< 1s", allocs = 0)]
fn sum_grid() -> i32 {
    let mut total: i32 = 0;
    for row in 0..100 {
        for col in 0..100 {
            total += row * col;
        }
    }
    total
}

fn main() {}
