Home / Function/ Benchmark_GenericParseTypeInts() — fiber Function Reference

Benchmark_GenericParseTypeInts() — fiber Function Reference

Architecture documentation for the Benchmark_GenericParseTypeInts() function in helpers_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  044bf7e8_cf74_6ee8_e82f_8b78f7106bee["Benchmark_GenericParseTypeInts()"]
  c82e3595_b1b8_f596_c097_f26fa40159d1["helpers_test.go"]
  044bf7e8_cf74_6ee8_e82f_8b78f7106bee -->|defined in| c82e3595_b1b8_f596_c097_f26fa40159d1
  style 044bf7e8_cf74_6ee8_e82f_8b78f7106bee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

helpers_test.go lines 1189–1256

func Benchmark_GenericParseTypeInts(b *testing.B) {
	b.Skip("Skipped: too fast to compare reliably (results in sub-ns range are unstable)")
	ints := []testGenericParseTypeIntCase{
		{
			value: 0,
			bits:  8,
		},
		{
			value: 1,
			bits:  8,
		},
		{
			value: 2,
			bits:  8,
		},
		{
			value: 3,
			bits:  8,
		},
		{
			value: 4,
			bits:  8,
		},
		{
			value: -1,
			bits:  8,
		},
		{
			value: math.MaxInt8,
			bits:  8,
		},
		{
			value: math.MinInt8,
			bits:  8,
		},
		{
			value: math.MaxInt16,
			bits:  16,
		},
		{
			value: math.MinInt16,
			bits:  16,
		},
		{
			value: math.MaxInt32,
			bits:  32,
		},
		{
			value: math.MinInt32,
			bits:  32,
		},
		{
			value: math.MaxInt64,
			bits:  64,
		},
		{
			value: math.MinInt64,
			bits:  64,
		},
	}
	for _, test := range ints {
		benchGenericParseTypeInt[int8](b, "bench_genericParseTypeInt8s", test)
		benchGenericParseTypeInt[int16](b, "bench_genericParseTypeInt16s", test)
		benchGenericParseTypeInt[int32](b, "bench_genericParseTypeInt32s", test)
		benchGenericParseTypeInt[int64](b, "bench_genericParseTypeInt64s", test)
		benchGenericParseTypeInt[int](b, "bench_genericParseTypeInts", test)
	}
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Benchmark_GenericParseTypeInts() do?
Benchmark_GenericParseTypeInts() is a function in the fiber codebase, defined in helpers_test.go.
Where is Benchmark_GenericParseTypeInts() defined?
Benchmark_GenericParseTypeInts() is defined in helpers_test.go at line 1189.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free