LedgerMath
← All benchmarksHow sort works

Sort 1 MiB

sort · compared across machine types · 8 Series on 8 machine types · AWS us-east-2

CPU
Order
CompareMachineVariantP50P99RateUnit costRuns
c8a.2xlarge857.3 µs—1.223 GB/s$0.102 /1M ops89
c8g.2xlarge1.580 ms—663.8 MB/s$0.14 /1M ops4
c8i.2xlarge1.680 ms—624.0 MB/s$0.175 /1M ops89
i4g.2xlarge2.832 ms—370.3 MB/s$0.485 /1M ops4
i4i.2xlarge2.853 ms—367.6 MB/s$0.544 /1M ops89
c6i.8xlarge2.857 ms—367.0 MB/s$1.05 /1M ops89
m6id.2xlarge2.909 ms—360.5 MB/s$0.383 /1M ops1
m5.large3.289 ms—318.8 MB/s$0.0878 /1M ops91
Compared:m5.largec8g.2xlargec8i.2xlarge

Run-to-run spread

time per 1 MiB sort across counted Runs

Over time

newest counted Runs, time per 1 MiB sort

(one request each to the data API)

What this measures

How fast one thread sorts 64-bit integer keys: a copy of size_bytes of unsorted keys, sorted by an LSD radix sort.

What it does not measure

  • The radix sort makes eight passes whatever the keys are. A sort that compares keys is not measured.
  • The keys are bare 64-bit integers, with no records attached.
  • Each repetition also copies the input, and reads a sample of the sorted keys for its checksum, so the figure is not the sort alone.

The whole method, on its page →

c8i.2xlarge

Beat this hot path on GitHub ↗