Vladimir Domnich
962da644af
It improves payload generation in our scenarios. Current implementation of scenarios generates single random payload at the start and then sends this same payload on every request. More realistic test is to generate unique payload for each request. However, this is an expensive operation that can easily cause a bottleneck on K6 side when we run multiple writing VUs. So instead we generate a random buffer with some extra bytes and then take slices of this buffer thus producing a random payload for each request. Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
20 lines
354 B
Go
20 lines
354 B
Go
package xk6_neofs
|
|
|
|
import (
|
|
_ "github.com/nspcc-dev/xk6-neofs/internal/datagen"
|
|
_ "github.com/nspcc-dev/xk6-neofs/internal/native"
|
|
_ "github.com/nspcc-dev/xk6-neofs/internal/s3"
|
|
"go.k6.io/k6/js/modules"
|
|
)
|
|
|
|
const (
|
|
version = "v0.1.0"
|
|
)
|
|
|
|
func init() {
|
|
modules.Register("k6/x/neofs", &NeoFS{Version: version})
|
|
}
|
|
|
|
type NeoFS struct {
|
|
Version string
|
|
}
|