Cysharp / DFrame

Distributed load testing framework for .NET and Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unique index per execution

the9ball opened this issue · comments

I need unique index per execution.
Like "Counter" in jMeter.

Use case

There is user data prepared in Database.
A unique index is needed for each execution to determine which user data should be used at this time.

Plans

A

  1. assign an Index to each Worker when calling CreateWorkloadAndSetup.
  2. set the WorkerIndex in the WorkloadContext.
  3. calculate based on WorkerIndex, Concurrency and ExecuteCount to be added in #44.

B

  1. query the Controller for the Index just before calling Workload.ExecuteAsync.

Merged #44.
(The benefits of B may not be fully understood by me, but if A meets the requirements it seems simpler.
Thanks for the PR and suggestion.