mirror of
https://gitlab.com/cznic/sqlite.git
synced 2025-04-27 23:07:44 +00:00
18 lines
341 B
Go
18 lines
341 B
Go
// Copyright 2021 The Sqlite Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package benchmark
|
|
|
|
import (
|
|
"math/rand"
|
|
"testing"
|
|
)
|
|
|
|
func BenchmarkPronounceNum(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
n := rand.Int31()
|
|
pronounceNum(uint32(n))
|
|
}
|
|
}
|