-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexamples_test.go
58 lines (46 loc) · 873 Bytes
/
examples_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright (c) The M1CPU Authors
// SPDX-License-Identifier: MPL-2.0
package m1cpu
import (
"fmt"
)
func ExampleIsAppleSilicon() {
value := IsAppleSilicon()
fmt.Println(value)
}
func ExampleModelName() {
value := ModelName()
fmt.Println(value)
}
func ExamplePCoreHz() {
value := PCoreHz()
fmt.Println(value)
}
func ExampleECoreHz() {
value := ECoreHz()
fmt.Println(value)
}
func ExamplePCoreGHz() {
value := PCoreGHz()
fmt.Println(value)
}
func ExampleECoreGHz() {
value := ECoreGHz()
fmt.Println(value)
}
func ExamplePCoreCount() {
value := PCoreCount()
fmt.Println(value)
}
func ExampleECoreCount() {
value := ECoreCount()
fmt.Println(value)
}
func ExamplePCoreCache() {
l1inst, l1data, l2 := PCoreCache()
fmt.Println(l1inst, l1data, l2)
}
func ExampleECoreCache() {
l1inst, l1data, l2 := ECoreCache()
fmt.Println(l1inst, l1data, l2)
}