3 ms·
Looks very cool! I don't care so much about YAML, but I do a ton of processing of JSON and csv/tsv. Any word on the performance relative to jq and xsv [1]? [
by VWWHFSfQ 4y ago
Looks very cool! I don't care so much about YAML, but I do a ton of processing of JSON and csv/tsv. Any word on the performance relative to jq and xsv [1]?
[1] https://github.com/BurntSushi/xsv https://github.com/BurntSushi/xsv
- snacktaster 4y agoBeing written in Go, I would be very surprised if it's anywhere close to as fast as either of those tools.
- VWWHFSfQ 4y agoI kind of suspected as much. But would still like to see some actual benchmarks.
- 0cf8612b2e1e 4y agoI am all for faster tools, but I am curious as to your use case where the jq speed would be limiting. I only ever cleanup a maximum of a few megabytes at a time, where the jq response is close enough to instant that it has never been a concern.
- VWWHFSfQ 4y agoI typically work with multi-gigabyte JSON and CSV files. I just did a quick test with yq and it's only about 30% faster than just using Python's csv and json libraries. Whereas the same thing is 1,200% faster with jq and xsv. It's just my use-case though, so YMMV.