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.
| VM | CPU | RAM | Disk | Overall | Best 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.
| Test | OCI E2 Micro (x86) | OCI A1 Flex (Arm) | AWS t4g.small (Arm) |
|---|---|---|---|
| CPU, 1 thread | 1.0× | 6.1× | 5.1× |
| CPU, all threads | 1.0× | 12.9× | 10.8× |
| RAM write | 1.0× | 2.1× | 1.8× |
| RAM read | 1.0× | 1.8× | 1.5× |
| Disk sequential write | 1.0× | 1.0× | 2.5× |
| Disk sequential read | 1.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 score | 1.0× | 8.9× | 7.4× |
| RAM score | 1.0× | 2.0× | 1.6× |
| Disk score | 1.0× | 1.0× | 1.6× |
| Overall | 1.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) | |
|---|---|---|---|
| Shape | VM.Standard.E2.1.Micro | VM.Standard.A1.Flex (2 OCPU / 12 GB) | t4g.small |
| Architecture | x86_64 | aarch64 | aarch64 |
| CPU | AMD EPYC 7551 (Zen 1) | Ampere Altra, Neoverse-N1 | AWS Graviton2, Neoverse-N1 |
| vCPU | 2 | 2 | 2 |
| Sustained CPU | 1/8 OCPU, burstable | Full 2 vCPU | 20% per vCPU on standard credits |
| RAM | 1 GB (951 MB usable) | 12 GB (11.9 GB usable) | 2 GB (1.8 GB usable) |
| Disk tested | 50 GB boot volume, Balanced | 50 GB boot volume, Balanced | 10 GB root, gp3 (3,000 IOPS / 125 MB/s baseline) |
| OS | Ubuntu 26.04.1 LTS | Ubuntu 26.04.1 LTS | Ubuntu 24.04.5 LTS |
| Kernel | 7.0.0-1016-oracle | 7.0.0-1015-oracle | 7.0.0-1013-aws |
| Cost | Always Free | Always Free (within 2 OCPU / 12 GB) | Free trial (750 h/month) |
Full results
Each test ran for 20 seconds. Higher is better.
| Metric | OCI E2 Micro (x86) | OCI A1 Flex (Arm) | AWS t4g.small (Arm) |
|---|---|---|---|
| CPU, 1 thread (events/s) | 207 | 1,263 | 1,055 |
| CPU, all threads (events/s) | 193 | 2,489 | 2,079 |
| RAM write (MiB/s) | 7,086 | 15,215 | 12,402 |
| RAM read (MiB/s) | 16,800 | 30,528 | 25,877 |
| Disk sequential write (MB/s) | 49.9 | 49.7 | 127.0 |
| Disk sequential read (MB/s) | 49.5 | 49.6 | 126.8 |
| Disk random write, 4k (IOPS) | 3,286 | 3,221 | 3,148 |
| Disk random read, 4k (IOPS) | 3,060 | 3,008 | 3,042 |
| CPU steal during the run | 21.3% | 0.1% | 0.4% |
Caveats
| Caveat | What it means |
|---|---|
| E2 Micro is throttled at once | It 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 speed | Its sustained speed is about 20% per vCPU. See the warning under Summary table. |
| The VMs were in use | Each 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 core | Both 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 speed | Both 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 disk | Each 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:
sysbenchfor CPU and RAM,fiofor 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 memorywith 1 MiB blocks, one thread, write then read. - Disk:
fiowith direct I/O (no page cache) on a 1 GiB test file (512 MiB on t4g.small, whose disk was nearly full):
| Test | Block size | Queue depth |
|---|---|---|
| Sequential write / read | 1 MiB | 16 |
| Random write / read | 4 KiB | 32 |
- Steal: read from
/proc/statbefore 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.