Serialbench

← Field overview

nokogiri

HTML / XML serializer · measured on 46 of 106 environments ·#1 in 1 of 27 measurements · primary environment: macOS 26 · arm64 · Ruby 3.2

Measured environments

macOS 26macOS 26macOS 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 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 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
Parsesmall100k0.02/94.8× slower than ox
Parsesmall84k0.03/62.5× slower than leptris
Parsemedium3732.73/93.4× slower than leptris
Parsemedium5721.73/63.8× slower than leptris
Parselarge30.532.82/92.9× slower than leptris
Parselarge53.618.73/64.2× slower than leptris
Generatesmall62k0.03/93.5× slower than ox
Generatesmall58k0.03/62.7× slower than leptris
Generatemedium2414.23/92.8× slower than leptris
Generatemedium4062.53/64.2× slower than leptris
Generatelarge12.381.42/92.9× slower than leptris
Generatelarge38.725.83/64.6× slower than leptris
Streamsmall34k0.03/613.4× slower than ox
Streammedium4702.12/63.7× slower than leptris
Streamlarge19.451.73/65.4× slower than leptris
XPathsmall35k0.02/71.4× slower than leptris
XPathsmall44k0.03/42.0× slower than leptris
XPathmedium2344.32/71.2× slower than leptris
XPathmedium5351.93/43.3× slower than leptris
XPathlarge6.93144.201/7best in field
XPathlarge50.419.83/43.7× slower than leptris
XSLTsmall2.3k0.42/47.3× slower than leptris
XSLTmedium1666.02/41.5× slower than leptris
XSLTlarge9.98100.192/42.1× slower than leptris
Validatesmall4.3k0.22/24.9× slower than leptris
Validatemedium2064.92/23.7× slower than leptris
Validatelarge7.67130.332/210.1× slower than leptris

Compare every library on every environment on the dashboard.

Cite

nokogiri measured on macOS 26 · arm64 · Ruby 3.2, HTML/XMLworkloads — serialbench, 2026-10-23. Full data: data/macos-26-ruby-3.2.yaml.