cachewerk / k6

k6 load tests for WordPress and WooCommerce.
https://relay.so
MIT License
22 stars 11 forks source link

Support loading all assets #5

Open tillkruss opened 2 years ago

tillkruss commented 2 years ago

Should be an optional flag.

const assets = response.html().find('[src*=""], [href*=".js"]').toArray()
http.batch(assets);
tillkruss commented 2 years ago

@kevinohashi Does it make sense to fetch these as well to simulate more realistic traffic? I assume 99% of this will be cached by a CDN.

kevinohashi commented 2 years ago

I think so, people want to see CDN performance too. The closer to reality the load test, the better imo. Having it as a flag makes sense.

osevan commented 5 months ago

Btw consider to include full page loading flag. One example :

Woocommerce shop or blog have 100 additonal websites/product-sites.

Wp.js or woocommerce.js should drive all these pages sequentialy or equally with flag --full-seq or --full-eq