Network and cpu throttling

Hello,

Is there any way to throttle network or/and cpu like lighthouse does? I cannot find it in documentation, but it could be easiest way to simulate mobile device conditions (from the user of K6.io perspective, i have no idea how hard to implement it would be).

from lighthouse results json:
“throttling”: {
“rttMs”: 150,
“throughputKbps”: 1638.4,
“requestLatencyMs”: 562.5,
“downloadThroughputKbps”: 1474.5600000000002,
“uploadThroughputKbps”: 675,
“cpuSlowdownMultiplier”: 4
},

Hey @Suwi , welcome to the forum! :wave:

Unfortunately right now we do not support this, but I’ve been taking a look and seems pretty feasible to implement, as CDP already supports it (CPU, network).

So I will create an issue for it and we’ll evaluate it internally.

Thank you for the feedback!

1 Like

Here is the issue to track this: Support CPU and Network throttling · Issue #887 · grafana/xk6-browser · GitHub.

1 Like

I tested it briefly, thanks! :slight_smile:

1 Like