@@ -39,7 +39,7 @@ make test-multi test-uuid test-main
39
39
```
40
40
41
41
To check if the current changes will pass the linter in CI, install
42
- golnagci-lint from [ sources] ( https://golangci-lint.run/usage/install/ )
42
+ golnagci-lint from [ sources] ( https://golangci-lint.run/usage/install/ )
43
43
and run it with next flags:
44
44
``` bash
45
45
golangci-lint run -E gofmt -D errcheck
@@ -49,7 +49,7 @@ golangci-lint run -E gofmt -D errcheck
49
49
50
50
### Quick start
51
51
52
- To run all benchmark tests from the current branch run:
52
+ To run all benchmark tests from the current branch run:
53
53
54
54
``` bash
55
55
make bench
@@ -93,7 +93,7 @@ testing [flag](https://pkg.go.dev/cmd/go#hdr-Testing_flags) `-benchtime` for got
93
93
It may take the values in seconds (e.g, ` 5s ` ) or count of iterations (e.g, ` 1000x ` ).
94
94
It is set to ` 3s ` by default.
95
95
96
- Use the variable ` COUNT ` to control the count of benchmark runs for each test.
96
+ Use the variable ` COUNT ` to control the count of benchmark runs for each test.
97
97
It is set to ` 5 ` by default. That variable is mapped on testing flag ` -count ` .
98
98
Use higher values if the benchmark numbers aren't stable.
99
99
@@ -119,39 +119,38 @@ There are suggestions how to achieve best results:
119
119
* If you're using ` intel_pstate ` frequency driver (it is usually default):
120
120
121
121
Disable TurboBoost:
122
-
122
+
123
123
``` shell
124
124
$ echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo
125
125
```
126
-
126
+
127
127
Set fixed frequency: not sure it is possible.
128
128
129
129
* If you' re using `acpi-cpufreq` driver:
130
-
130
+
131
131
Ensure you actually don' t use intel_pstate:
132
-
132
+
133
133
` ` ` shell
134
134
$ grep -o ' intel_pstate=\w\+' /proc/cmdline
135
135
intel_pstate=disable
136
136
$ cpupower -c all frequency-info | grep driver:
137
137
driver: acpi-cpufreq
138
138
< ...>
139
139
` ` `
140
-
140
+
141
141
Disable TurboBoost:
142
-
142
+
143
143
` ` ` shell
144
144
$ echo 0 > /sys/devices/system/cpu/cpufreq/boost
145
145
` ` `
146
-
146
+
147
147
Set fixed frequency:
148
-
148
+
149
149
` ` ` shell
150
150
$ cpupower -c all frequency-set -g userspace
151
151
$ cpupower -c all frequency-set -f 1.80GHz # adjust for your CPU
152
152
` ` `
153
153
154
-
155
154
# # Code review checklist
156
155
157
156
- Public API contains functions, variables, constants that are needed from
0 commit comments