n4-highcpu-2 by Google Cloud Platform

n4-highcpu-2 is a 2 vCPUs, 4 GB RAM server offered by Google Cloud Platform with 2 vCPUs, 4 GiB of memory and 0 GB of storage. The pricing starts at 0.0097 USD per hour.
2 vCPU
4 GiB Memory
Spare SCore
1,737
(All-cores)
1,658
(Single-core)

Specifications

Server Metadata

Vendor ID
gcp
Server ID
1750017
Name
n4-highcpu-2
Description
2 vCPUs, 4 GB RAM
Family
n4
Hw Virt
Average Time To Start
19
Status
active
Observed At
2026-11-07T13:34:39.897915

Availability

REGION / IDSPOTONDEMAND
Columbus (US) / us-east5
0.0257 USD/h 0.0765 USD/h
Ashburn (US) / us-east4
0.0389 USD/h 0.0765 USD/h
Council Bluffs (US) / us-central1
0.043 USD/h 0.0765 USD/h
The Dalles (US) / us-west1
0.043 USD/h 0.0765 USD/h
Moncks Corner (US) / us-east1
0.043 USD/h 0.0765 USD/h
Mumbai (IN) / asia-south1
0.0173 USD/h 0.0796 USD/h
Delhi (IN) / asia-south2
0.0255 USD/h 0.0796 USD/h
Bangkok (TH) / asia-southeast3
0.0152 USD/h 0.0804 USD/h
Eemshaven (NL) / europe-west4
0.0168 USD/h 0.0804 USD/h
Stockholm (SE) / europe-north2
0.0331 USD/h 0.0804 USD/h
Queretaro (MX) / northamerica-south1
0.0224 USD/h 0.0834 USD/h
Tel Aviv (IL) / me-west1
0.0221 USD/h 0.0842 USD/h
St. Ghislain (BE) / europe-west1
0.011 USD/h 0.0843 USD/h
Montréal (CA) / northamerica-northeast1
0.0157 USD/h 0.0843 USD/h
Johannesburg (ZA) / africa-south1
0.0202 USD/h 0.0843 USD/h
Toronto (CA) / northamerica-northeast2
0.031 USD/h 0.0843 USD/h
Hamina (FI) / europe-north1
0.035 USD/h 0.0843 USD/h
Las Vegas (US) / us-west4
0.036 USD/h 0.0862 USD/h
London (GB) / europe-west2
0.0334 USD/h 0.0873 USD/h
Changhua County (TW) / asia-east1
0.0337 USD/h 0.0886 USD/h
Milan (IT) / europe-west8
0.0164 USD/h 0.0888 USD/h
Paris (FR) / europe-west9
0.0318 USD/h 0.0888 USD/h
Dallas (US) / us-south1
0.0159 USD/h 0.0903 USD/h
Madrid (ES) / europe-southwest1
0.0201 USD/h 0.0903 USD/h
Frankfurt (DE) / europe-west3
0.0538 USD/h 0.0903 USD/h
Salt Lake City (US) / us-west3
0.0196 USD/h 0.092 USD/h
Los Angeles (US) / us-west2
0.0521 USD/h 0.092 USD/h
Warsaw (PL) / europe-central2
0.0471 USD/h 0.0926 USD/h
Doha (QA) / me-central1
0.0428 USD/h 0.093 USD/h
Jurong West (SG) / asia-southeast1
0.0566 USD/h 0.0944 USD/h
Sydney (AU) / australia-southeast1
0.0463 USD/h 0.0957 USD/h
Osaka (JP) / asia-northeast2
0.0356 USD/h 0.0983 USD/h
Seoul (KR) / asia-northeast3
0.0464 USD/h 0.0983 USD/h
Tokyo (JP) / asia-northeast1
0.0559 USD/h 0.0983 USD/h
Melbourne (AU) / australia-southeast2
0.035 USD/h 0.0995 USD/h
Zurich (CH) / europe-west6
0.051 USD/h 0.1003 USD/h
Jakarta (ID) / asia-southeast2
0.0298 USD/h 0.1029 USD/h
Hong Kong / asia-east2
0.0097 USD/h 0.1071 USD/h
Santiago (CL) / southamerica-west1
0.0203 USD/h 0.1095 USD/h
Osasco (BR) / southamerica-east1
0.016 USD/h 0.1215 USD/h
Dammam (SA) / me-central2
0.0222 USD/h 0.1225 USD/h

Processor

vCPUs
2
CPU Allocation
Dedicated
CPU Cores
1
CPU Architecture
x86_64
CPU Manufacturer
Intel
CPU L1D Cache
48 KiB
CPU L1D Cache Total
48 KiB
CPU L1I Cache
32 KiB
CPU L1I Cache Total
32 KiB
CPU L2 Cache
2 MiB
CPU L2 Cache Total
2 MiB
CPU L3 Cache
260 MiB
CPU L3 Cache Total
260 MiB
CPU Flags
fpu, vme, de, pse, tsc, msr, pae, mce, cx8, apic, sep, mtrr, pge, mca, cmov, pat, pse36, clflush, mmx, fxsr, sse, sse2, ss, ht, syscall, nx, pdpe1gb, rdtscp, lm, constant_tsc, rep_good, nopl, xtopology, nonstop_tsc, cpuid, tsc_known_freq, pni, pclmulqdq, smx, est, ssse3, sdbg, fma, cx16, xtpr, pdcm, pcid, dca, sse4_1, sse4_2, x2apic, movbe, popcnt, aes, xsave, avx, f16c, rdrand, hypervisor, lahf_lm, abm, 3dnowprefetch, cat_l3, cat_l2, cdp_l3, cdp_l2, ssbd, mba, ibrs, ibpb, stibp, ibrs_enhanced, fsgsbase, tsc_adjust, bmi1, hle, avx2, smep, bmi2, erms, invpcid, rtm, avx512f, avx512dq, rdseed, adx, smap, avx512ifma, clflushopt, clwb, avx512cd, sha_ni, avx512bw, avx512vl, xsaveopt, xsavec, xgetbv1, xsaves, cqm_llc, cqm_occup_llc, cqm_mbm_total, cqm_mbm_local, avx_vnni, avx512_bf16, wbnoinvd, arat, avx512vbmi, umip, avx512_vbmi2, gfni, vaes, vpclmulqdq, avx512_vnni, avx512_bitalg, avx512_vpopcntdq, la57, rdpid, cldemote, movdiri, movdir64b, fsrm, md_clear, serialize, tsxldtrk, amx_bf16, avx512_fp16, amx_tile, amx_int8, arch_capabilities
Ecpus
1
Scalability
50

System Resources and Accelerators

MEMORY
Memory Amount
4 GiB
Memory Amount Actual
4 GiB
ACCELERATORS
Accelerator Count
0
Accelerator Memory Min
0 MiB
Accelerator Memory Total
0 MiB
Accelerators
    STORAGE
    Storage Size
    0 GB
    Storages
      NETWORK
      Inbound Traffic
      0 GB/month
      Outbound Traffic
      0 GB/month
      IPv4
      0

      CPU and System Topology

      Server Description

      A compact compute instance featuring dedicated Intel vCPUs and instruction acceleration for lightweight processing workloads.

      Compute Optimized

      Google Cloud Platform n4-highcpu-2 is a compute-focused instance powered by an Intel x86_64 processor delivering 2 vCPUs across 1 physical core with 4.0 GB of RAM. Featuring dedicated CPU allocation and a 1:2 memory-to-vCPU ratio, the server includes instruction set extensions such as AVX-512 and Intel AMX. It includes no bundled local storage, GPU acceleration, or complimentary public IPv4 addresses. Benchmark performance shows solid single-core efficiency, with average results in Geekbench single-core and compression tests, alongside lower scores in multi-core throughput and memory bandwidth benchmarks due to its compact dual-vCPU topology. This instance is qualitatively cost-efficient for lightweight, compute-oriented execution that does not demand large memory footprints or high multi-threaded parallelism. Appropriate workloads include lightweight microservices, basic web servers, background task workers, and developmental test environments.

      Economics

      Average Price per Region

      Prices per Zone

      Lowest Prices

      Performance

      Workload Profiles

      0.21Score
      Precomputed compound score for Cache Intensive workloads. A weighted average (geometric mean) of benchmark scores compared to their medians: score = ∏ (x_i / m_i)^(w_i / Σw). The score of 1.0 represents a synthetic baseline server with the median performance of each component benchmark; 0.5 means roughly half the performance; and 2.0 means twice the performance of that reference profile. Component weights: 50% Redis RPS (pipeline=1, SET), 20% Redis RPS (pipeline=16, SET), 10% PassMark Memory Mark (composite), 10% Memory bandwidth (read, 16 MB ~ L3), 10% PassMark single-thread CPU. Rationale for component selection: In-memory key-value store workload, mixing direct Redis performance metrics with memory speed and latency benchmarks, and single-core CPU performance profiles.
      Component Score Weight Impact
      Raw Reference Normalized Target Actual
      Redis RPS (pipeline=1, SET) 304,724 ops/sec 1,933,252 ops/sec 0.16 50.00% 50.00% -60.00%
      Redis RPS (pipeline=16, SET) 1,570,911 ops/sec 11,803,344 ops/sec 0.13 20.00% 20.00% -34.00%
      PassMark Memory Mark (composite) 830 2,407 0.35 10.00% 10.00% -10.00%
      Memory bandwidth (read, 16 MB ~ L3) 29,757 MB/sec 108,651 MB/sec 0.27 10.00% 10.00% -12.00%
      PassMark single-thread CPU 2,569 Mops/s 2,365 Mops/s 1.1 10.00% 10.00% +0.96%

      Memory Bandwidth

      Compression

      OpenSSL

      Geekbench Single-Core

      Score: 1,836

      Geekbench Multi-Core

      Score: 2,242

      Passmark CPU Scores

      BENCHMARKSCORE
      Mark
      3,265
      Compression
      32,138
      Encryption
      1,851
      Extended Instructions
      2,225
      Floating Point Maths
      5,905
      Integer Maths
      8,300
      Physics
      419
      Prime Numbers
      17
      Single Threaded
      2,569
      String Sorting
      4,193

      Passmark Memory Scores

      BENCHMARKSCORE
      Memory Mark
      831
      Database Operations
      1,006
      Memory Latency
      73
      Memory Read Cached
      23,586
      Memory Read Uncached
      6,996
      Memory Write
      6,725

      Stress-ng Stressors

      CPU integerSingleMultiScaling
      atomic
      596.68 596.92 1.00×
      bitops
      119,383 144,930 1.21×
      branch
      112,352 173,545 1.54×
      funccall
      609.62 799.56 1.31×
      funcret
      10,194 15,814 1.55×
      hash
      142,944 208,122 1.46×
      intmath
      52,223 64,666 1.24×
      nop
      213,923 177,501 0.83×
      prime
      386,026 471,158 1.22×
      rotate
      80,248 88,536 1.10×
      str
      732,433 1,119,373 1.53×
      wcs
      543,246 682,462 1.26×
      CryptographySingleMultiScaling
      crypt
      2,704 3,170 1.17×
      CompressionSingleMultiScaling
      jpeg
      676.69 899.69 1.33×
      zlib
      49.43 82.02 1.66×
      HypervisorSingleMultiScaling
      clock
      44,655 69,015 1.55×
      clone
      368.66 388.1 1.05×
      context
      4,147 6,944 1.67×
      cpu-sched
      70.03 127.17 1.82×
      eventfd
      52,879 215,751 4.08×
      fault
      21,297 28,725 1.35×
      fork
      5,189 10,001 1.93×
      getrandom
      47,632 69,377 1.46×
      hrtimers
      167,225 250,482 1.50×
      mprotect
      604,043 606,708 1.00×
      mtx
      12,739,976 61,599,632 4.84×
      munmap
      3,751 6,676 1.78×
      null
      725,692 1,140,039 1.57×
      pipe
      3,083,692 1,343,286 0.44×
      priv-instr
      678,560 975,021 1.44×
      resched
      356,060 237,439 0.67×
      switch
      136,409 534,286 3.92×
      timermix
      196,387 329,534 1.68×
      tlb-shootdown
      5,985 6,333 1.06×
      tsc
      468,921 781,542 1.67×
      usersyscall
      570,702 832,198 1.46×
      vdso
      72,447,262 112,133,340 1.55×
      vfork
      36,407 61,586 1.69×
      x86syscall
      8,087,303 13,502,948 1.67×
      yield
      2,278,378 1,558,197 0.68×
      zero
      5,205,247 8,572,970 1.65×
      CPU float/SIMDSingleMultiScaling
      eigen
      12,956 17,144 1.32×
      expmath
      2,832 4,121 1.45×
      fma
      1,054,057 1,374,150 1.30×
      fp
      131.86 255.13 1.93×
      fractal
      5.2 7.6 1.46×
      hyperbolic
      3,274 4,698 1.44×
      logmath
      4,190 6,628 1.58×
      matrix
      4,144 4,735 1.14×
      matrix-3d
      745.58 796.76 1.07×
      monte-carlo
      236.5 386.68 1.64×
      mpfr
      1,401 1,656 1.18×
      powmath
      1,582 2,397 1.52×
      trig
      2,143 2,832 1.32×
      veccmp
      20,038 23,163 1.16×
      vecfp
      1,235 1,581 1.28×
      vecmath
      3,154 4,430 1.40×
      vecshuf
      662.05 761.48 1.15×
      vecwide
      27,726 34,046 1.23×
      AlgorithmsSingleMultiScaling
      bitonicsort
      7.2 8.6 1.19×
      bsearch
      231.66 285.55 1.23×
      bubblesort
      0.8 0.8 1.00×
      fibsearch
      261.65 331.67 1.27×
      heapsort
      8 11 1.38×
      hsearch
      6,766 8,389 1.24×
      insertionsort
      10.2 9.4 0.92×
      malloc
      2,211,291 4,140,393 1.87×
      mcontend
      373.21 406.83 1.09×
      mergesort
      24.6 35.6 1.45×
      qsort
      17.6 24.6 1.40×
      skiplist
      4,398 6,932 1.58×
      tree
      1.4 2 1.43×
      MemorySingleMultiScaling
      cache
      205,536 249,028 1.21×
      cachehammer
      190,063 304,940 1.60×
      cacheline
      26.49 56.2 2.12×
      l1cache
      875.4 344.71 0.39×
      memcpy
      357.39 365.5 1.02×
      memrate
      0.17 0.31 1.82×
      memthrash
      59.07 87.34 1.48×
      ptr-chase
      25,633,835 44,624,220 1.74×
      spinmem
      179.99 0.4 0.00×
      stream
      5.28 12.22 2.31×
      vm
      79,978 146,971 1.84×

      Stress-ng Raw Scores

      Stress-ng Relative Multicore Performance

      LLM Inference Speed for Prompt Processing

      LLM Inference Speed for Text Generation

      Static Web Server

      Redis

      PostgreSQL heavy read-only throughput

      Alternatives

      Servers of the Same Family

      INSTANCEvCPUsMEMORYAccelerators
      n4-standard-2 28 GiB0
      n4-highmem-2 216 GiB0
      n4-highcpu-4 48 GiB0
      n4-standard-4 416 GiB0
      n4-highmem-4 432 GiB0
      n4-highcpu-8 816 GiB0
      n4-standard-8 832 GiB0

      Similar Servers

      INSTANCEVENDORvCPUsMEMORYAccelerators

      n4-highcpu-2 FAQs