Fetching data — 0%
Benchmark Mode
Choose how you want to compare the gems
Performance Over Time
Visual Comparison
Detailed Results
All Ruby versions All platforms All compilers| Gem | Version | Pass Rate | Speed (ops/s) | Memory (MB) |
|---|
Speed and memory are averages across 0 test runs. Click column headers to sort.
Why These Benchmarks?
Ruby has several JSON Logic implementations, each with different trade-offs in compatibility, performance, and Ruby version support.
We created these benchmarks to objectively measure the strengths and weaknesses of each gem, helping developers make informed decisions based on real data rather than assumptions.
Key questions we answer: Which gem passes the most tests? Which is fastest? Which works on older Ruby versions? Which uses the least memory?
How We Measure
All benchmarks run in our open-source benchmark repository via GitHub Actions on consistent runners.
- Pass Rate: Percentage of 601 official JSON Logic tests passed
- Speed: Operations per second using Ruby's
Benchmarkmodule with warmup iterations - Memory: Peak memory usage measured via
GetProcessMem
Tests run across multiple Ruby versions (2.7 to 3.4) on both Linux and macOS to ensure comprehensive coverage.
Key Insights
100% Test Compliance
shiny_json_logic is the only Ruby gem that passes
all official JSON Logic tests from the json-logic org.
Fastest on Every Ruby Version
shiny_json_logic wins all 18/18 Linux benchmark runs across every Ruby version tested (2.7 through 4.0), with and without YJIT. Margins range from +9% to +117% faster than the next best gem.
Ruby 2.4+ Support
Unlike competitors that require Ruby 3.0+, shiny_json_logic
works on Ruby 2.4, supporting legacy applications.
Transparent Methodology
All benchmark code is open source . Run them yourself to verify.