cpu/

Intel i5-10400 CPU benchmark

CPU benchmark from desktop PC

$ sysbench cpu run --time=5
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  1389.45

General statistics:
    total time:                          5.0001s
    total number of events:              6949

Latency (ms):
         min:                                    0.70
         avg:                                    0.72
         max:                                    1.04
         95th percentile:                        0.75

Threads fairness:
    events (avg/stddev):           6949.0000/0.00
    execution time (avg/stddev):   4.9991/0.00
| 22 Feb 2021

Install multimedia codecs in fedora

If you are experiencing high CPU usage when watching videos on youtube, verify that the following packages are installed (requires RPMFusion repository):

# RPMFuison repositories
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

# Codecs
sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel
sudo dnf install lame\* --exclude=lame-devel
sudo dnf group upgrade --with-optional Multimedia

CPU usage for i3-8100T is down from 80% to 50% with this video sample

| 16 Jan 2021

High CPU usage on youtube in fedora

I’ve started to experience quite high CPU usage when watching youtube videos on 1440p screen (video sample). By default, youtube loads videos in VP9 codec. Using this codec results in 80% CPU usage (i3-8100T). By installing this extension enhanced-h264ify and by blocking VP8, VP9 and AV1, youtube will load videos in avc1(h.264) codec. The CPU usage is down to about 30%.

Unfortunately, this will disable all 4k videos - they are available only in VP9.

| 14 Jan 2021

i5-9400H CPU benchmark

CPU benchmark from Dell Precision 5540 i5-9400H

$ sysbench cpu run --time=5
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  1352.90

General statistics:
    total time:                          5.0007s
    total number of events:              6767

Latency (ms):
         min:                                    0.70
         avg:                                    0.74
         max:                                    1.59
         95th percentile:                        0.77
         sum:                                 4999.03

Threads fairness:
    events (avg/stddev):           6767.0000/0.00
    execution time (avg/stddev):   4.9990/0.00


| 29 Dec 2020

i3-8100T CPU benchmark

CPU benchmark from Dell Optiplex 3060 micro i3-8100T

$ sysbench cpu run --time=5
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  1029.12

General statistics:
    total time:                          5.0007s
    total number of events:              5148

Latency (ms):
         min:                                    0.97
         avg:                                    0.97
         max:                                    1.11
         95th percentile:                        0.97
         sum:                                 4999.22

Threads fairness:
    events (avg/stddev):           5148.0000/0.00
    execution time (avg/stddev):   4.9992/0.00

| 29 Dec 2020

Monitor cpu and memory usage of the process

Print every second cpu and memory usage of the process:

watch -n 1 "ps -eo pid,pcpu,pmem,args | kazy -i xnotitle -e kazy"
| 1 Jan 2020

i5-6440HQ CPU benchmark

CPU benchmark from Dell Precision 15 5510 Core-i5 i5-6440HQ

$ sysbench cpu run --time=5
sysbench 1.0.9 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  1157.88

General statistics:
    total time:                          5.0008s
    total number of events:              5792

Latency (ms):
         min:                                  0.80
         avg:                                  0.86
         max:                                  3.74
         95th percentile:                      1.06
         sum:                               4998.26

Threads fairness:
    events (avg/stddev):           5792.0000/0.00
    execution time (avg/stddev):   4.9983/0.00
| 11 Mar 2018