benchmark

package module
v0.0.0-...-86bf099 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 3 Imported by: 0

README

Benchmarks

Arche's benchmarks and profiling.

See also the internal benchmarks in packages ecs, generic and filter.

Running the benchmarks

From here (benchmarks/), run:

go test -benchmem -run=^$ -bench ^.*$ ./...

Documentation

Overview

Package benchmark contains benchmarking and profiling code for Arche, an archetype-based Entity Component System (ECS) for Go.

See package github.com/mlange-42/arche/ecs for Arche's API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBenchmarks

func RunBenchmarks(title string, benches []Benchmark, format func([]Benchmark) string)

func ToMarkdown

func ToMarkdown(benches []Benchmark) string

Types

type Benchmark

type Benchmark struct {
	Name   string
	Desc   string
	F      func(b *testing.B)
	N      int
	T      float64
	Factor float64
	Units  string
}

Directories

Path Synopsis
arche
relations
Package relations benchmarks different ways to create entity relations:
Package relations benchmarks different ways to create entity relations:
Package profile contains profiling code for Arche.
Package profile contains profiling code for Arche.

Jump to

Keyboard shortcuts

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