luajit_bench

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestMain

func TestMain(m *testing.M)

TestMain is the entry point for all tests in this package

func TrackMemoryUsage

func TrackMemoryUsage(b *testing.B, name string, fn func())

TrackMemoryUsage runs fn and reports memory usage before and after

Types

type MemStats

type MemStats struct {
	Alloc      uint64
	TotalAlloc uint64
	Sys        uint64
	Mallocs    uint64
	Frees      uint64
	HeapAlloc  uint64
}

MemStats captures a snapshot of memory statistics

func CaptureMemStats

func CaptureMemStats() MemStats

CaptureMemStats returns current memory statistics

Jump to

Keyboard shortcuts

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