FA Dev Tools

English中文

Free-Tier VM Benchmark — OCI E2 Micro vs OCI A1 Flex vs AWS t4g.small

infra/free-tier-vm-benchmark-oci-vs-aws-t4g · By Derek Lam · Updated · 17 views · Tags: infra, benchmark, oracle-cloud, aws, ec2, arm, free-tier

Written with claude-opus-5-5


TL;DR

  • Overall winner: OCI A1 Flex (Arm), tied with AWS t4g.small. Both are about 2.6× faster than the OCI E2 Micro.
  • CPU: A1 Flex is fastest. It beats t4g.small by 1.2× and E2 Micro by 6× on one thread and 13× on two.
  • RAM: A1 Flex is fastest. It is 1.2× faster than t4g.small and 2× faster than E2 Micro.
  • Disk: t4g.small (gp3) wins sequential reads and writes at 127 MB/s, 2.6× the OCI volumes. All three manage about 3,000 IOPS on small random reads and writes.
  • t4g.small's CPU score is its burst speed. It sustains only 20% per vCPU, so under long load A1 Flex is about 5× faster.
  • Verdict: run CPU or memory-heavy work on OCI A1 Flex, and keep E2 Micro for very light jobs.

Contents

Tested on 2026-11-19, on three always-free or free-trial VMs that were running small live services at the time.

Summary table

Each score is relative to OCI A1 Flex = 100%. Overall is the geometric mean of the CPU, RAM and disk scores.

VMCPURAMDiskOverallBest for
OCI E2 Micro (x86)11%51%101%39%Very light jobs only
OCI A1 Flex (Arm)100%100%100%100%CPU or memory-heavy work, anything long-running
AWS t4g.small (Arm)84% (burst only)83%159%103%Short bursts, disk-heavy work

A t4g.small earns CPU credits at 20% per vCPU. The test is short enough to run on saved credits, so it shows the burst speed. Once the credits run out, the instance slows to about a fifth of the score above. OCI A1 Flex has no credit system: what you measure is what you keep.

How much faster

Each VM's result as a multiple of OCI E2 Micro = 1.0×. Higher is faster.

TestOCI E2 Micro (x86)OCI A1 Flex (Arm)AWS t4g.small (Arm)
CPU, 1 thread1.0×6.1×5.1×
CPU, all threads1.0×12.9×10.8×
RAM write1.0×2.1×1.8×
RAM read1.0×1.8×1.5×
Disk sequential write1.0×1.0×2.5×
Disk sequential read1.0×1.0×2.6×
Disk random write (4k)1.0×1.0×1.0×
Disk random read (4k)1.0×1.0×1.0×
CPU score1.0×8.9×7.4×
RAM score1.0×2.0×1.6×
Disk score1.0×1.0×1.6×
Overall1.0×2.6×2.7×

OCI A1 Flex vs AWS t4g.small: A1 Flex is 1.2× faster on CPU and RAM. t4g.small is 2.6× faster on sequential disk. Random disk I/O and the overall score are about equal.

Hardware and OS

OCI E2 Micro (x86)OCI A1 Flex (Arm)AWS t4g.small (Arm)
ShapeVM.Standard.E2.1.MicroVM.Standard.A1.Flex (2 OCPU / 12 GB)t4g.small
Architecturex86_64aarch64aarch64
CPUAMD EPYC 7551 (Zen 1)Ampere Altra, Neoverse-N1AWS Graviton2, Neoverse-N1
vCPU222
Sustained CPU1/8 OCPU, burstableFull 2 vCPU20% per vCPU on standard credits
RAM1 GB (951 MB usable)12 GB (11.9 GB usable)2 GB (1.8 GB usable)
Disk tested50 GB boot volume, Balanced50 GB boot volume, Balanced10 GB root, gp3 (3,000 IOPS / 125 MB/s baseline)
OSUbuntu 26.04.1 LTSUbuntu 26.04.1 LTSUbuntu 24.04.5 LTS
Kernel7.0.0-1016-oracle7.0.0-1015-oracle7.0.0-1013-aws
CostAlways FreeAlways Free (within 2 OCPU / 12 GB)Free trial (750 h/month)

Full results

Each test ran for 20 seconds. Higher is better.

MetricOCI E2 Micro (x86)OCI A1 Flex (Arm)AWS t4g.small (Arm)
CPU, 1 thread (events/s)2071,2631,055
CPU, all threads (events/s)1932,4892,079
RAM write (MiB/s)7,08615,21512,402
RAM read (MiB/s)16,80030,52825,877
Disk sequential write (MB/s)49.949.7127.0
Disk sequential read (MB/s)49.549.6126.8
Disk random write, 4k (IOPS)3,2863,2213,148
Disk random read, 4k (IOPS)3,0603,0083,042
CPU steal during the run21.3%0.1%0.4%

Caveats

CaveatWhat it means
E2 Micro is throttled at onceIt got slower with two threads than with one, and the hypervisor took 21% of its CPU time. That is the 1/8 OCPU cap at work.
t4g.small is shown at burst speedIts sustained speed is about 20% per vCPU. See the warning under Summary table.
The VMs were in useEach one ran small live services. Load was low (load average under 1.1), but results can shift by a few percent between runs.
The two Arm VMs use the same coreBoth use Neoverse-N1, and A1 Flex's 1.2× lead matches its higher clock speed (3.0 GHz vs 2.5 GHz).
Disk results are volume limits, not hardware speedBoth OCI volumes sit at the Balanced tier's limit for 50 GB. gp3 includes 125 MB/s of throughput by default, which is why t4g.small leads on sequential I/O.
Tested on the boot diskEach VM also has a separate data disk. On OCI it is the same tier, so results there should be the same.

How the test was run

Nothing was created or resized. CPU time and disk I/O are free on OCI Always Free, gp3 has no per-I/O charge, and a t4g on standard credits slows down instead of billing surplus credits. The only download was two small packages, and inbound traffic is free.

  • Tools: sysbench for CPU and RAM, fio for disk. They were installed only for the test and removed afterwards.
  • CPU: sysbench cpu --cpu-max-prime=20000, first on one thread, then on all vCPUs.
  • RAM: sysbench memory with 1 MiB blocks, one thread, write then read.
  • Disk: fio with direct I/O (no page cache) on a 1 GiB test file (512 MiB on t4g.small, whose disk was nearly full):
TestBlock sizeQueue depth
Sequential write / read1 MiB16
Random write / read4 KiB32
  • Steal: read from /proc/stat before and after the run.
  • Scores: each VM's result divided by A1 Flex's, then combined with a geometric mean, first per category and then across CPU, RAM and disk.

Disclaimer: These documents are personal notes. The information may be incomplete, out of date or wrong, so check it before you rely on it.