Documentation
¶
Index ¶
Constants ¶
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.
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 ¶
var LargeDataSize = 3 * 1_000_000_000
LargeDataSize configures the payload size used by the multithreaded AES benchmark when run from the command line.
var LargeMemcopyArraySize = 1_000_000_000
LargeMemcopyArraySize defines the slice length used by the multithreaded memory benchmark when run from the command line.
var LargeSortArraySize = 1_000_000_000
LargeSortArraySize is the slice length used when running the multithreaded sorting benchmark from the command line.
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.