Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Script to test CPU performance
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Script to test CPU performance

Hello,

Anybody can suggest bash script for CPU performance test, e.g. something gzip based.

thanks

Comments

  • WSSWSS Member

    Why would you use gzip to test the CPU abilities rather than something capable of threading or actual-real-work applicable?

    #!/bin/sh
    tar cvpf - /dev/random | gzip -9 > devrandom.tar.gz
    
  • bersybersy Member

    https://github.com/n-st/nench

    -------------------------
     nench.sh benchmark
     2017-04-15 10:18:35 UTC
    -------------------------
    Processor:    Intel(R) Xeon(R) CPU E3-1275 v5 @ 3.60GHz
    CPU cores:    1
    Frequency:    3600.039 MHz
    RAM:          512M
    Swap:         64M
    Kernel:       Linux 2.6.32-042stab120.16 x86_64
    ...
    CPU: SHA256-hashing 500 MB
        3.037 seconds
    CPU: bzip2-compressing 500 MB
        5.131 seconds
    CPU: AES-encrypting 500 MB
        0.931 seconds
    ...
    
    Thanked by 1mgilang
  • Geekbench

  • Not bad, I could add some network locations

    -------------------------
     nench.sh benchmark
     2017-04-23 16:48:29 UTC
    -------------------------
    
    Processor:    Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz
    CPU cores:    8
    Frequency:    3801.000 MHz
    RAM:          62G
    Swap:         15G
    Kernel:       Linux 4.4.49-1-pve x86_64
    
    Disks:
    nvme0n1  419.2G  SSD
    nvme1n1  419.2G  SSD
    sda      1.8T    HDD
    sdb      1.8T    HDD
    
    CPU: SHA256-hashing 500 MB
        2.048 seconds
    CPU: bzip2-compressing 500 MB
        3.477 seconds
    CPU: AES-encrypting 500 MB
        0.580 seconds
    
    ioping: seek rate
        min/avg/max/mdev = 34.3 us / 146.3 us / 2.15 ms / 30.8 us
    ioping: sequential speed
        generated 13.9 k requests in 5.00 s, 3.39 GiB, 2.78 k iops, 694.4 MiB/s
    
    dd test
        1st run:    852 MB/s
        2nd run:    912 MB/s
        3rd run:    925 MB/s
        average:    896 MB/s
    
    IPv4 speedtests
        your IPv4:    
    
        Cachefly CDN:         105.93 MiB/s
        Leaseweb (NL):        24.58 MiB/s
        Softlayer DAL (US):   41.51 MiB/s
        Online.net (FR):      17.32 MiB/s
        OVH BHS (CA):         111.38 MiB/s
    
    IPv6 speedtests
        your IPv6:    
    
        Leaseweb (NL):        24.83 MiB/s
        Softlayer DAL (US):   31.22 MiB/s
        Online.net (FR):      21.43 MiB/s
        OVH BHS (CA):         109.60 MiB/s
    -------------------------
    
  • Fork bomb that CPU to hell and see how fast it really is. If it resists an hour in that logical chaos, than it should be fine. :)

    :(){ :|:& };:

    Note: do this to your home computer, not to production systems.

    Thanked by 2sysFy WSS
  • ckissickissi Member
    edited April 2017

    @bersy said:
    https://github.com/n-st/nench

    -------------------------
     nench.sh benchmark
     2017-04-15 10:18:35 UTC
    -------------------------
    Processor:    Intel(R) Xeon(R) CPU E3-1275 v5 @ 3.60GHz
    CPU cores:    1
    Frequency:    3600.039 MHz
    RAM:          512M
    Swap:         64M
    Kernel:       Linux 2.6.32-042stab120.16 x86_64
    ...
    CPU: SHA256-hashing 500 MB
        3.037 seconds
    CPU: bzip2-compressing 500 MB
        5.131 seconds
    CPU: AES-encrypting 500 MB
        0.931 seconds
    ...
    

    @FredQc said:
    Not bad, I could add some network locations

    -------------------------
    nench.sh benchmark
    2017-04-23 16:48:29 UTC
    -------------------------

    Processor: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz
    CPU cores: 8
    Frequency: 3801.000 MHz
    RAM: 62G
    Swap: 15G
    Kernel: Linux 4.4.49-1-pve x86_64

    Disks:
    nvme0n1 419.2G SSD
    nvme1n1 419.2G SSD
    sda 1.8T HDD
    sdb 1.8T HDD

    CPU: SHA256-hashing 500 MB
    2.048 seconds
    CPU: bzip2-compressing 500 MB
    3.477 seconds
    CPU: AES-encrypting 500 MB
    0.580 seconds

    ioping: seek rate
    min/avg/max/mdev = 34.3 us / 146.3 us / 2.15 ms / 30.8 us
    ioping: sequential speed
    generated 13.9 k requests in 5.00 s, 3.39 GiB, 2.78 k iops, 694.4 MiB/s

    dd test
    1st run: 852 MB/s
    2nd run: 912 MB/s
    3rd run: 925 MB/s
    average: 896 MB/s

    IPv4 speedtests
    your IPv4:

    Cachefly CDN: 105.93 MiB/s
    Leaseweb (NL): 24.58 MiB/s
    Softlayer DAL (US): 41.51 MiB/s
    Online.net (FR): 17.32 MiB/s
    OVH BHS (CA): 111.38 MiB/s

    IPv6 speedtests
    your IPv6:

    Leaseweb (NL): 24.83 MiB/s
    Softlayer DAL (US): 31.22 MiB/s
    Online.net (FR): 21.43 MiB/s
    OVH BHS (CA): 109.60 MiB/s
    -------------------------

    Not bad at all

  • WSSWSS Member

    @default said:
    Fork bomb that CPU to hell and see how fast it really is. If it resists an hour in that logical chaos, than it should be fine. :)

    :(){ :|:& };:

    Note: do this to your home computer, not to production systems.

    My personal view is that this is an incredible dick move- but if there are no ulimits set, welp- there soon will be.

  • joerijoeri Member, Host Rep, LIR

    @FredQc said:
    Not bad, I could add some network locations

    Add all mirror location from Leaseweb

    mirror.nl.leaseweb.net & mirror.de.leaseweb.net & mirror.us.leaseweb.net

Sign In or Register to comment.