Serialbench

← Field overview

nokogiri

HTML / XML serializer · measured on 46 of 99 environments ·#1 in 5 of 27 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
Parsesmall103k0.03/94.2× slower than ox
Parsesmall25k0.03/66.4× slower than leptris-whatwg
Parsemedium1695.93/91.9× slower than leptris
Parsemedium1805.62/62.4× slower than leptris
Parselarge24.241.41/9best in field
Parselarge30.532.81/6best in field
Generatesmall34k0.03/97.8× slower than ox
Generatesmall55k0.03/62.8× slower than leptris
Generatemedium1198.43/94.0× slower than leptris
Generatemedium3462.92/61.6× slower than leptris
Generatelarge12.083.12/91.2× slower than ox
Generatelarge30.333.01/6best in field
Streamsmall33k0.03/69.3× slower than ox
Streammedium2813.63/65.1× slower than leptris
Streamlarge17.656.83/63.7× slower than leptris
XPathsmall23k0.02/72.5× slower than leptris
XPathsmall36k0.02/42.3× slower than leptris
XPathmedium74.413.41/7best in field
XPathmedium2174.62/43.3× slower than leptris
XPathlarge8.43118.632/72.5× slower than leptris
XPathlarge32.830.51/4best in field
XSLTsmall5.3k0.22/44.3× slower than leptris
XSLTmedium72.413.82/42.6× slower than leptris
XSLTlarge6.85146.072/41.7× slower than leptris
Validatesmall3.1k0.32/25.1× slower than leptris
Validatemedium1109.12/21.6× slower than leptris
Validatelarge6.47154.672/24.3× 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-19. Full data: data/macos-26-ruby-3.2.yaml.