Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ async fn run_iteration(benchmark: Arc<Benchmark>, pool: Pool, config: Arc<Config

context.insert("iteration".to_string(), json!(iteration.to_string()));
context.insert("base".to_string(), json!(config.base.to_string()));
// Default `index` to the iteration counter so `{{ index }}` resolves in a plain request; with_items expansions override it with the item position at execute time.
context.insert("index".to_string(), json!(iteration));

for item in benchmark.iter() {
item.execute(&mut context, &mut reports, &pool, &config).await;
Expand Down
Loading