[ANN] ruse-json v0.2.0 (pre-alpha)

41 views
Skip to first unread message

Amirouche Boubekki

unread,
Aug 24, 2021, 12:33:38 AM8/24/21
to chez-scheme
I am pleased to announce that ruse-json v0.2.0 has been released. 

That is a rework of SRFI-180. I dropped the "bigger than memory" and "arbitrarily deep" JSON data-structures; that are arguably very rare use-cases. I also dropped the ability to customize the output data-structure in one pass; that is JavaScript object and arrays are respectively represented as Scheme association list and arrays; if you need something else, you need to re-traverse the output of json-read. The test suite was also reworked to be easier to maintain.

Here are some benchmarks:

chez-9.5.4/json : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 9.48 cpython-3.9.5/simdjson: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 5.98 pypy3-7.3.3/json : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 3.26 c++/simdjson : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 11.47

You can reproduce the benchmarks with the command: make benchmark

Amirouche Boubekki

unread,
Aug 24, 2021, 12:36:34 AM8/24/21
to chez-scheme
The same benchmark, but hopefully properly formatted:

Amirouche Boubekki

unread,
Nov 11, 2021, 6:06:50 AM11/11/21
to chez-scheme
Reply all
Reply to author
Forward
0 new messages