k6

remove ids generated during the tests

送分小仙女□ 提交于 2021-01-28 06:01:20
问题 For load testing in the vu stage I generate a lot of objects with unique ids that I put them in the database. I want to delete them during teardown stage in order not to pollute the database. When keeping the state like this let ids = []; export function setup() { ids.push('put in setup id'); } export default function () { ids.push('put in vu id'); } export function teardown() { ids.push('put in teardown id'); console.log('Resources: ' + ids); } it doesn't work as the array always contains

Downloading whole websites with k6

血红的双手。 提交于 2021-01-28 05:26:41
问题 I'm currently evaluating whether k6 fits our load testing needs. We have a fairly traditional website architecture that uses Apache webservers with PHP und a MySQL database. Sending simple HTTP requests with k6 looks simple enough and I think we will be able to test all major functionality with it, as we don't rely on JavaScript that much and most pages are static. However, I'm unsure how to deal with resources (stylesheets, images, etc.) that are referenced in the HTML that is returned in

K6 InfluxDB + Grafana Docker : How to preload a dashboard

醉酒当歌 提交于 2020-12-14 09:37:53
问题 I am using K6 for Load Testing. I have cloned the K6, Grafana, InfluxDB docker-compose set up from here: https://github.com/loadimpact/k6 Each time I start Grafana, I have to manually import the dashboard I want to use ('Import' - ID2587 - Load). I am new to Docker (and Grafana!)....is there anyway to have this dashboard preloaded in the container so I don't have to manually add it each time? 回答1: mount your dashboard and datasources into grafana container when running docker-compose up -d

K6 InfluxDB + Grafana Docker : How to preload a dashboard

送分小仙女□ 提交于 2020-12-14 09:32:42
问题 I am using K6 for Load Testing. I have cloned the K6, Grafana, InfluxDB docker-compose set up from here: https://github.com/loadimpact/k6 Each time I start Grafana, I have to manually import the dashboard I want to use ('Import' - ID2587 - Load). I am new to Docker (and Grafana!)....is there anyway to have this dashboard preloaded in the container so I don't have to manually add it each time? 回答1: mount your dashboard and datasources into grafana container when running docker-compose up -d

How much memory for k6 VU (Virtual User)? [closed]

偶尔善良 提交于 2019-12-13 09:42:20
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . How much memory is used by a VU (Virtual User) in k6? Does memory usage for VUs scale linearly, i.e. if 1 VU uses X kilobytes, do 100 VUs use 100 * X kilobytes? 回答1: How much memory a VU takes is highly dependent on what your script does and (usually more importantly) how many