Runtime benchmarks
Technical reference of Benchmarks del runtime.
This API is used in Benchmarks.
Symbols
| Symbol | Class | Description |
|---|---|---|
| SetBenchmarkHandlerSectionHook | func | Sets SetBenchmarkHandlerSectionHook. |
| BenchmarkHandlerSection | func | Run and measure the handler section. |
SetBenchmarkHandlerSectionHook
Declaration:
func SetBenchmarkHandlerSectionHook(fn func(func())) func() Sets SetBenchmarkHandlerSectionHook.
Parameters
| Parameter | Type | Description |
|---|---|---|
fn | func(func()) | Type value func(func()) required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | func() | Type value func() produced by the operation. |
Usage syntax
value := gox.SetBenchmarkHandlerSectionHook(nil) BenchmarkHandlerSection
Declaration:
func BenchmarkHandlerSection(fn func()) Run and measure the handler section.
Parameters
| Parameter | Type | Description |
|---|---|---|
fn | func() | Type value func() required by the operation. |
Usage syntax
gox.BenchmarkHandlerSection(nil)