simulation

package
v0.0.0-...-10d9840 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCPUWorkload

func RunCPUWorkload(duration int)

func RunMemoryLoad

func RunMemoryLoad(duration int, megabytes int)

func SimulateIO

func SimulateIO(ctx context.Context, duration int, sizeMB int)

SimulateIO simulates file I/O operations by writing and reading back random data from a temporary file. `duration` specifies how long the I/O operations should run, and `sizeMB` specifies the size of the data to write (in each operation in megabytes)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL