|
|
|
|
|
by creationix
88 days ago
|
|
That benchmark is a fair comparison for a real-world production workload and use case. Sadly I can't share the details. But suffice it to say that the dataset is a huge object with tens of thousands of paths as keys and moderately large objects as values (averaging around 3KB of JSON each) all with slightly different shapes. The use is reading just a few entries by path an then looking up some properties within those entries. The benchmark (or is supposed to) measures end-to-end parse + lookup. JSON: 92 MB
RX: 5.1 MB Request-path lookup: ~47,000x faster Time to decode a manifest and look up one URL path: JSON: 69 ms
REXC: 0.003 ms Heap allocations: 2.6 million vs. 1 JSON: 2,598,384
REXC: 1 (the returned string) |
|