The way we do it in Starknet in rust:
Create the transactions in rust, deploying the account and the yas contract and making an invoke tx to execute the swap
Get an invoke tx that invoke the yas contract and execute it
We need to evaluate what option is better and implement it
Note. The idea of the benchmark is to execute the swap many times, so we can have a better benchmarks
The idea is to benchmark the Yas swap execution using criterion, like we did in starknet_in_rust crate https://github.com/lambdaclass/starknet_in_rust/blob/99c7b3b29a78cf8a27cc61bcdc029ed4255817ad/bench/yas.rs For what I know, there are two options to replicate this benchmarks:
Note. The idea of the benchmark is to execute the swap many times, so we can have a better benchmarks