This page shows how to get performance benchmarks for a Compute Engine
instance or a specific machine series or machine type.

> [!IMPORTANT]
> **Important:** If you need help benchmarking performance, or if you want to inquire about available benchmark scores for a machine type, contact your Google Cloud account team.

## How to create performance benchmarks

Performance benchmarks are created with
[PerfKitBenchmarker](https://github.com/GoogleCloudPlatform/PerfKitBenchmarker)
on Compute Engine instances. 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 compute instance,
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](https://docs.cloud.google.com/compute/docs/machine-resource).
- Learn about benchmarking disk performance:
  - [for Linux](https://docs.cloud.google.com/compute/docs/disks/benchmarking-pd-performance-linux)
  - [for Windows](https://docs.cloud.google.com/compute/docs/disks/benchmarking-pd-performance-windows)
- Learn about [benchmarking network performance](https://docs.cloud.google.com/compute/docs/networking/benchmarking-higher-bandwidth-vms).