Runtime benchmarks

Technical reference of Benchmarks del runtime.

This API is used in Benchmarks.


Symbols

SymbolClassDescription
SetBenchmarkHandlerSectionHookfuncSets SetBenchmarkHandlerSectionHook.
BenchmarkHandlerSectionfuncRun and measure the handler section.

SetBenchmarkHandlerSectionHook

Declaration:

gox
func SetBenchmarkHandlerSectionHook(fn func(func())) func()

Sets SetBenchmarkHandlerSectionHook.

Parameters

ParameterTypeDescription
fnfunc(func())Type value func(func()) required by the operation.

Returns

ReturnTypeDescription
valuefunc()Type value func() produced by the operation.

Usage syntax

gox
value := gox.SetBenchmarkHandlerSectionHook(nil)

BenchmarkHandlerSection

Declaration:

gox
func BenchmarkHandlerSection(fn func())

Run and measure the handler section.

Parameters

ParameterTypeDescription
fnfunc()Type value func() required by the operation.

Usage syntax

gox
gox.BenchmarkHandlerSection(nil)

See also

Next step

Back to SDK index to consult the other areas of the public API and the runtime integration contracts.

SDK