mirror of
https://gitee.com/johng/gf
synced 2026-07-05 05:13:14 +08:00
21 lines
479 B
Go
21 lines
479 B
Go
// Copyright 2018 gf Author(https://gitee.com/johng/gf). All Rights Reserved.
|
|
//
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
// If a copy of the MIT was not distributed with this file,
|
|
// You can obtain one at https://gitee.com/johng/gf.
|
|
|
|
// go test *.go -bench=".*"
|
|
|
|
package grand_test
|
|
|
|
import (
|
|
"testing"
|
|
"gitee.com/johng/gf/g/util/grand"
|
|
)
|
|
|
|
func Benchmark_Rand(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
grand.Rand(0, 200)
|
|
}
|
|
}
|