expressionevaluation

package
v0.0.0-...-f2dfb0a Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Expression Evaluation Benchmarks

Benchmarks of expression evaluation libraries for Golang.

Execute Benchmark

 go test -bench=. -benchmem -count 5 -benchtime=100000x > results/results.out

Results

All the benchmarks are performed in the Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz machine with 10K samples and 5 iterations.

Compile

Average Compile time for each expression library

Average Compile Average Compile Expand

Evaluation

Average Evaluation time for each expression library

Average Evaluate Average Evaluate Expand

Libraries

⚠ Please note that these libraries are benchmarked against sample expressions. You are encouraged to benchmark with your custom expressions.

Credits

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	ID       int
	Name     string
	City     string
	Country  string
	Currency string
}

func (Input) Get

func (i Input) Get(name string) (interface{}, error)

func (Input) Parent

func (i Input) Parent() interpreter.Activation

func (Input) ResolveName

func (i Input) ResolveName(name string) (any, bool)

Jump to

Keyboard shortcuts

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