multithreaded

package
v0.0.0-...-b67c786 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const LargeFFTSize = 1 << 25 // must be a power of two

LargeFFTSize sets the input length for the multithreaded FFT benchmark when invoked from the command line.

View Source
const LargeMatrixMultiplicationSize = 4096 // Fixed matrix size for consistent workload

LargeMatrixMultiplicationSize holds the matrix dimension used by the multithreaded matrix multiplication benchmark when run from the command line.

Variables

View Source
var LargeDataSize = 3 * 1_000_000_000

LargeDataSize configures the payload size used by the multithreaded AES benchmark when run from the command line.

View Source
var LargeMemcopyArraySize = 1_000_000_000

LargeMemcopyArraySize defines the slice length used by the multithreaded memory benchmark when run from the command line.

View Source
var LargeSortArraySize = 1_000_000_000

LargeSortArraySize is the slice length used when running the multithreaded sorting benchmark from the command line.

View Source
var LargeStreamArraySize = 6 * 1_000_000_000

LargeStreamArraySize defines the default workload for the multithreaded StreamBenchmark when executed from the command line.

Functions

func CryptoBenchmark

func CryptoBenchmark(size int)

CryptoBenchmark performs multithreaded AES encryption over the given number of bytes. If size <= 0 a default of one million bytes is used.

func FftBenchmark

func FftBenchmark(size int)

FftBenchmark performs a multithreaded Fast Fourier Transform FftBenchmark performs a multithreaded Fast Fourier Transform over a slice of the provided size. If size <= 0 a smaller power-of-two length is used.

func MatrixMultiplicationBenchmark

func MatrixMultiplicationBenchmark(size int)

MatrixMultiplicationBenchmark performs multithreaded matrix multiplication with the provided matrix dimension. If size <= 0 a smaller default is used.

func MemoryCopySetBenchmark

func MemoryCopySetBenchmark(size int)

MemoryCopySetBenchmark performs multithreaded memory copy and set operations MemoryCopySetBenchmark performs multithreaded memory copy and set operations on the provided number of bytes. If size <= 0 a default of one million bytes is used.

func SortingBenchmark

func SortingBenchmark(size int)

SortingBenchmark performs multithreaded sorting of a slice of the given length. If size <= 0 a default of one million elements is used.

func StreamBenchmark

func StreamBenchmark(size int)

StreamBenchmark performs a multithreaded memory bandwidth test using the provided size. If size <= 0 a default of one million elements is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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