Benchmark_GenericParseTypeUints() — fiber Function Reference
Architecture documentation for the Benchmark_GenericParseTypeUints() function in helpers_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 6e70fba9_6698_5491_ff6d_acc4803d20c4["Benchmark_GenericParseTypeUints()"] c82e3595_b1b8_f596_c097_f26fa40159d1["helpers_test.go"] 6e70fba9_6698_5491_ff6d_acc4803d20c4 -->|defined in| c82e3595_b1b8_f596_c097_f26fa40159d1 style 6e70fba9_6698_5491_ff6d_acc4803d20c4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
helpers_test.go lines 1280–1335
func Benchmark_GenericParseTypeUints(b *testing.B) {
b.Skip("Skipped: too fast to compare reliably (results in sub-ns range are unstable)")
uints := []struct {
value uint64
bits int
}{
{
value: 0,
bits: 8,
},
{
value: 1,
bits: 8,
},
{
value: 2,
bits: 8,
},
{
value: 3,
bits: 8,
},
{
value: 4,
bits: 8,
},
{
value: math.MaxUint8,
bits: 8,
},
{
value: math.MaxUint16,
bits: 16,
},
{
value: math.MaxUint16,
bits: 16,
},
{
value: math.MaxUint32,
bits: 32,
},
{
value: math.MaxUint64,
bits: 64,
},
}
for _, test := range uints {
benchGenericParseTypeUInt[uint8](b, "benchmark_genericParseTypeUint8s", test)
benchGenericParseTypeUInt[uint16](b, "benchmark_genericParseTypeUint16s", test)
benchGenericParseTypeUInt[uint32](b, "benchmark_genericParseTypeUint32s", test)
benchGenericParseTypeUInt[uint64](b, "benchmark_genericParseTypeUint64s", test)
benchGenericParseTypeUInt[uint](b, "benchmark_genericParseTypeUints", test)
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Benchmark_GenericParseTypeUints() do?
Benchmark_GenericParseTypeUints() is a function in the fiber codebase, defined in helpers_test.go.
Where is Benchmark_GenericParseTypeUints() defined?
Benchmark_GenericParseTypeUints() is defined in helpers_test.go at line 1280.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free