
How to Use gron and jq for Exploring Unknown JSON Fast
Explore unknown JSON from an API with gron and jq: flatten to greppable paths, find a value, list all paths with jq, then extract exactly what you need.
Tag
18 posts

Explore unknown JSON from an API with gron and jq: flatten to greppable paths, find a value, list all paths with jq, then extract exactly what you need.

Use perf stat and perf record for quick profiles: read the counters, compare runs, sample call stacks, view the report and fix permission limits.

Speed up file processing in Go with a bounded worker pool or errgroup: walk the tree, hash files in parallel, collect results safely and measure honestly.

Why spawning processes costs time: what fork and exec do, measuring a subprocess in a loop, builtins versus external commands, and when it matters.

Why a benchmark lies when caches change results: page cache, CPU, DNS and app caches, how to spot a cached run, and measuring cold and warm.

Write a trustworthy benchmark for shell and script performance: warmups, repeated runs, same input, cache control, ratios, noise and what to report.