K6: Setup function and test results

Created on 16 Jun 2020  路  2Comments  路  Source: loadimpact/k6

Environment

  • k6 version: v0.26.2 (2020-03-18T11:45:39+0000/v0.26.2-0-g459da79e, go1.13.8, windows/amd64)
  • OS and version: Windows
  • Docker version and image, if applicable:

Expected Behavior


Before running my load tests I need some to create some records using a post method, so that the test data is dynamic. Normally I would expect that all the requests made in setup function to not be accounted for when displaying (metrics.http_req) since they're not part of the test (or the default function).

Actual Behavior


The time to prepare data is accounted for in the results

is there anyway to not have this since it affects the benchmarks of our API, beside using statically generated data ? Thank you

bug duplicate

All 2 comments

Hi, thanks for reporting this. It's a known issue: see #891 and #1321, particularly the workaround with tags mentioned in #891.

So I'll close this as duplicate, but feel free to follow those issues for updates. Currently the team is focused on a big upcoming release, but this feature is one of the top priorities after that.

@imiric Thank you for your response :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StephenRadachy picture StephenRadachy  路  3Comments

euclid1990 picture euclid1990  路  3Comments

sdhoward picture sdhoward  路  3Comments

gushengyuan picture gushengyuan  路  3Comments

Julianhm9612 picture Julianhm9612  路  4Comments