VK Cloud logo

How to test CPU

To get more CPU performance parameters, use several testing utilities at the same time:

Preparatory steps

  1. If you have not done so already, contact technical support or your VK Cloud account manager with a request to allocate the required resources for testing.

    Wait for confirmation that the resources you need have been allocated.

  2. Make sure that SDN Sprut is connected for your project. Otherwise, contact technical support with a connection request.

  3. Create a test virtual machine with the following parameters:

    • Virtual machine category: select a category depending on the type of resource requested, or All current virtual machine types.

    • Virtual machine type: select STD-3 (Ice Lake) 4 vcpu, 16 Gb RAM from the list, or the type specified when requesting the resource.

    • Disk type: SSD is selected by default. To get maximum performance values, select the High-IOPS or Low Latency NVMe type.

    • Disk size: 256 GB is selected by default. To get maximum performance values, it is recommended to select 1500 GB, provided that High-IOPS or Low Latency NVME is selected in the Disk type field. For more information, see the section on disk performance.

    • Operating system: select Ubuntu 22.04 LTS.

    • At the Configuration step, in the Network field, select the existing SDN Sprut or create a new network with the Sprut type.

    Leave the remaining parameters at your discretion.

  4. Connect to the created VM and install all available updates. Installation methods depend on the selected OS.

1. Run testing with the sysbench utility

  1. Install the sysbench utility on the VM:

    sudo apt install sysbench
  2. Run the single-threaded CPU performance test 5 times in a row:

    sysbench cpu --threads=1 --time=60 run
  3. Run the 16-thread CPU performance test 5 times in a row:

    sysbench cpu --threads=16 --time=60 run
  4. Record the results in the spreadsheet. The average value of the CPU Speed (events/s) parameter across five runs will be the most indicative.

2. Run testing with the Geekbench 6 utility

  1. Install the Geekbench 6 utility on the VM:

    wget https://cdn.geekbench.com/Geekbench-6.2.1-Linux.tar.gztar xf Geekbench-6.2.1-Linux.tar.gzcd Geekbench-6.2.1-Linux
  2. Run the CPU performance test 5 times in a row:

    ./geekbench6
  3. Save the resulting links to the test results, as well as the average value across 5 runs for the Single-Core Score and Multi-Core Score parameters.

3. Run testing with the 7-Zip Benchmark utility

  1. Install the 7-Zip Benchmark utility on the VM:

    sudo apt install p7zip-full
  2. Run the single-threaded CPU performance test 5 times in a row and save the command output to a file:

    7z b -md26 -mmt1 5
  3. Run the 16-thread CPU performance test 5 times in a row and save the command output to a file:

    7z b -md26 -mmt16 5
  4. Calculate the average values of the MIPS parameter across five runs, separately for the single-threaded and 16-thread commands.

4. Run testing with the UnixBench utility

  1. Install the UnixBench utility on the VM:

    sudo snap install unixbench
  2. Run the single-threaded CPU performance test 5 times in a row and save the command output to a file:

    unixbench -c 1
  3. Run the 16-thread CPU performance test 5 times in a row and save the command output to a file:

    unixbench -c 16
  4. Save the value of the Benchmark Index Score parameter separately for the single-threaded and 16-thread commands.

5. Record the testing results

Collect all the results obtained in the previous CPU performance testing steps. Now you can compare this data with the performance of other cloud platforms.

Delete unused resources

The created resources are billed. If you no longer need them, delete them:

  1. Delete the test VM.
  2. Delete the subnet and the network in which the VM was hosted.
Was this article helpful?