This page shows how to get performance benchmarks for a VM machine series.
How Google creates these benchmarks
Performance benchmarks are created with PerfKitBenchmarker on Compute Engine VMs. For optimal parallelization, the benchmarks are run while specifying a number of threads equal to the number of vCPUs on each machine type. As a standard option in CoreMark, network sockets are used for parallelization. For each test of a VM, CoreMark runs five times and the first of those runs is dropped from the results.
Use the following command to generate benchmarks:
./pkb --cloud=GCP \ --benchmarks=coremark \ --machine_type=n4-standard-2 \ --gcp_min_cpu_platform=emeraldrapids \ --os_type=ubuntu2204 \ --run_stage_iterations=5 \ --zone=us-east1-b
Edit the machine type, CPU, OS type, and zone as necessary.
What's next
- Learn about Compute Engine machine resource types .
- Learn about benchmarking disk performance .
- Learn about benchmarking network performance .

