Solutions and Benchmarks
go install go.bobheadxi.dev/gobenchdata@latestmake build-parsermake run
ADD TWO NUMBERS
LONGEST SUBSTRING WITHOUT REPEATING CHARACTERS
TWO SUM
Runs: 7798587
Name | ns/op | B/op | allocs/op |
---|---|---|---|
BenchmarkAddTwoNumbers-2 | 151.500000 ns/op | 48.000000 B/op | 3.000000 allocs/op |
Runs: 29090780
Name | ns/op | B/op | allocs/op |
---|---|---|---|
BenchmarkLongestSubstringWithoutRepeatingCharacters-2 | 42.440000 ns/op | 0.000000 B/op | 0.000000 allocs/op |
Runs: 7277935
Name | ns/op | B/op | allocs/op |
---|---|---|---|
BenchmarkTwoSum-2 | 171.300000 ns/op | 16.000000 B/op | 1.000000 allocs/op |