filecoin-project / retrieval-load-testing

Other
4 stars 1 forks source link

Write a bitswap plugin for k6 #3

Open hannahhoward opened 1 year ago

hannahhoward commented 1 year ago

What

To enable bitswap load testing, let's setup K6 to execute bitswap requests via a javascript plugin

Docs on plugin writing: https://k6.io/docs/extensions/get-started/create/javascript-extensions/#advanced-module-api

HTTP plugin source code: https://github.com/grafana/k6/tree/master/js/modules/k6/http

Suggested Implementation

Out of scope

DAG Walking, for now

Acceptance criteria

We can write a script that fetches a Bitswap Block