mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Add a note about CPU Scaling and benchmarks.
This commit is contained in:
1 parent
03acc15782
commit
c69e256b0c
1 file changed
+14
@@ -32,6 +32,7 @@ benchmark runs, or calculate p-values when comparing numbers before and after a
|
|||||||
code change. To install it, first install Go, then run `go get
|
code change. To install it, first install Go, then run `go get
|
||||||
golang.org/x/perf/cmd/benchstat`.
|
golang.org/x/perf/cmd/benchstat`.
|
||||||
|
|
||||||
|
|
||||||
## puffs bench
|
## puffs bench
|
||||||
|
|
||||||
As mentioned above, individual benchmark programs can be run manually. However,
|
As mentioned above, individual benchmark programs can be run manually. However,
|
||||||
@@ -52,6 +53,19 @@ or
|
|||||||
puffs bench -ccompilers=gcc -reps=3 -focus=Benchmarkpuffs_gif_lzw std/gif
|
puffs bench -ccompilers=gcc -reps=3 -focus=Benchmarkpuffs_gif_lzw std/gif
|
||||||
|
|
||||||
|
|
||||||
|
## CPU Scaling
|
||||||
|
|
||||||
|
CPU power management can inject noise in benchmark times. On a Linux system,
|
||||||
|
power management can be controlled with:
|
||||||
|
|
||||||
|
# Query.
|
||||||
|
cpupower --cpu all frequency-info --policy
|
||||||
|
# Turn on.
|
||||||
|
sudo cpupower frequency-set --governor powersave
|
||||||
|
# Turn off.
|
||||||
|
sudo cpupower frequency-set --governor performance
|
||||||
|
|
||||||
|
|
||||||
# GIF
|
# GIF
|
||||||
|
|
||||||
The 1k, 10k, etc. numbers are approximately how many bytes of pixel data there
|
The 1k, 10k, etc. numbers are approximately how many bytes of pixel data there
|
||||||
|
|||||||
Reference in new issue
Block a user