2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2022-03-02 03:26:57 +00:00
|
|
|
|
|
|
|
package distro
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func BenchmarkGet(b *testing.B) {
|
|
|
|
b.ReportAllocs()
|
|
|
|
var d Distro
|
|
|
|
for i := 0; i < b.N; i++ {
|
|
|
|
d = Get()
|
|
|
|
}
|
|
|
|
_ = d
|
|
|
|
}
|