---
title: "The world’s fastest tool for querying JSON files"
description: "clickhouse-local, a single-binary SQL engine for local and remote files, outperforms SPySQL, jq, trdsql, Miller, OctoSQL, spark-sql, Pandas and DSQ when querying large JSON files in the SPySQL benchmark on Amazon book reviews data."
url: "https://swe.quest/articles/the-world-s-fastest-tool-for-querying-json-files-5bf7115ac2686d02"
canonical: "https://clickhouse.com/blog/worlds-fastest-json-querying-tool-clickhouse-local"
source: "ClickHouse"
published: "2022-10-14"
difficulty: "easy"
kind: "Research"
reading_minutes: 3
tags: ["performance","analytics","sql"]
---

# The world’s fastest tool for querying JSON files

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2022-10-14, 3 min read, Research. Original: [https://clickhouse.com/blog/worlds-fastest-json-querying-tool-clickhouse-local](https://clickhouse.com/blog/worlds-fastest-json-querying-tool-clickhouse-local)

## Summary

clickhouse-local, a single-binary SQL engine for local and remote files, outperforms SPySQL, jq, trdsql, Miller, OctoSQL, spark-sql, Pandas and DSQ when querying large JSON files in the SPySQL benchmark on Amazon book reviews data. The benchmark covers map (computed column over all rows), aggregation (column average) and filter (first 100 matching rows) tasks, and OctoSQL is faster on smaller files. Schema inference and semi-structured data support make the queries simple to write. Caveats: each query runs only once, results vary by hardware, and the filter test favors tools that stop early on LIMIT without loading the whole file.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- JSON

## Keywords

clickhouse-local, ClickHouse, SPySQL, OctoSQL, jq

## Related posts

- [The billion docs JSON Challenge: ClickHouse vs. MongoDB, Elasticsearch, and more](https://swe.quest/articles/the-billion-docs-json-challenge-clickhouse-vs-mongodb-elasticsearch-and-more-e942a192bad31355.md): ClickHouse · 2025-01-29 · Medium · 28 min read · Analytics & OLAP, Databases, Storage engines, Performance engineering
  JSONBench is a reproducible benchmark that loads up to one billion Bluesky event JSON documents into ClickHouse, MongoDB, Elasticsearch, DuckDB and PostgreSQL, then measures storage size and the speed of five analytical queries.
- [Extracting, Converting, and Querying Data in Local Files using clickhouse-local](https://swe.quest/articles/extracting-converting-and-querying-data-in-local-files-using-clickhouse-local-46ff61f0273cc3b7.md): ClickHouse · 2023-01-04 · Medium · 13 min read · Analytics & OLAP, SQL, Data pipelines, Developer tools
  clickhouse-local runs ClickHouse's SQL engine as a standalone CLI, so you can query, transform and convert local, piped, HTTP, S3, MySQL or Postgres data without deploying a server.
- [What really matters for performance: lessons from a year of benchmarks](https://swe.quest/articles/what-really-matters-for-performance-lessons-from-a-year-of-benchmarks-0ec8700c872ad4a4.md): ClickHouse · 2025-12-22 · Easy · 7 min read · Analytics & OLAP, Performance engineering, Caching, Databases
  Six ClickHouse benchmarks from 2025 point to one conclusion: performance depends on how efficiently an engine moves data end-to-end.
- [A Hybrid Query Execution Experiment](https://swe.quest/articles/a-hybrid-query-execution-experiment-6268c36fd6767e98.md): ClickHouse · 2024-01-31 · Medium · 10 min read · Analytics & OLAP, Query engines, SQL
  ClickHouse Local can join local JSON files of GitHub repository metrics with PyPI download data on a remote ClickHouse Cloud server via the remoteSecure table function, giving a form of hybrid query execution.
- [What's New in pg\_clickhouse - JSONB Support, SQL value functions, Streaming, and more](https://swe.quest/articles/what-s-new-in-pg-clickhouse-jsonb-support-sql-value-functions-streaming-and-more-ecb202cf6ff32298.md): ClickHouse · 2026-04-24 · Medium · 10 min read · PostgreSQL, Analytics & OLAP, Query engines, Memory management
  pg\_clickhouse, the Postgres foreign data wrapper for querying ClickHouse, now pushes down far more operations to ClickHouse.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
