benchmark

package module
v0.0.0-...-b118b88 Latest Latest
Warning

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

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

README

Benchmarks

Arche benchmarks and competition against other Go ECS implementations. 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 code for Arche, and for comparison with other Go ECS implementation.

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