Serialbench

← Field overview

oj

JSON serializer · measured on 46 of 99 environments ·#1 in 2 of 9 measurements · primary environment: macOS 26 · arm64 · Ruby 3.2

Measured environments

macOS 26macOS 26macOS 26macOS 26macOS 26macOS 26macOS 26macOS 26macOS 26macOS 26macOS 26 IntelmacOS 26 IntelmacOS 26 IntelmacOS 26 IntelmacOS 26 IntelmacOS 26 IntelmacOS 26 IntelmacOS 26 IntelmacOS 26 IntelmacOS 26 IntelmacOS 15macOS 15macOS 15macOS 15macOS 15macOS 15macOS 15macOS 15macOS 15macOS 15macOS 15 IntelmacOS 15 IntelmacOS 15 IntelmacOS 15 IntelmacOS 15 IntelmacOS 15 IntelmacOS 15 IntelmacOS 15 IntelmacOS 14macOS 14macOS 14macOS 14macOS 14macOS 14macOS 14macOS 14Windows 2025Windows 2025Windows 2025Windows 2025Windows 2025Windows 2025Windows 2025Windows 2025Windows 11Windows 11Windows 2022Windows 2022Windows 2022Windows 2022Windows 2022Windows 2022Windows 2022Windows 2022Windows 2022Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 24.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04Ubuntu 22.04

Iterations per second on the primary environment · rank vs the field

OperationInputipsms/opRankvs best
Parsesmall588k0.02/121.1× slower than rapidjson
Parsemedium2603.82/122.9× slower than json
Parselarge25.339.54/121.6× slower than json
Generatesmall400k0.01/10best in field
Generatemedium2963.43/101.5× slower than json
Generatelarge19.052.72/101.9× slower than json
Streamsmall68k0.02/24.3× slower than yajl
Streammedium2244.51/2best in field
Streamlarge16.859.62/21.3× slower than yajl

Compare every library on every environment on the dashboard.

Cite

oj measured on macOS 26 · arm64 · Ruby 3.2, JSONworkloads — serialbench, 2026-10-19. Full data: data/macos-26-ruby-3.2.yaml.