47degrees / helios

A purely functional JSON library for Kotlin built on Λrrow
https://47degrees.github.io/helios/
Apache License 2.0
169 stars 22 forks source link

Add printing with format #104

Closed AdrianRaFo closed 5 years ago

AdrianRaFo commented 5 years ago

Fixes #30

Add the feature of printing with 2 or 4 spaces

47degdev commented 5 years ago

Hood benchmark comparison: :warning: Decoding (Threshold: 142.0347126300216)

Benchmark Value
master_benchmark 11500.348250862391
helios_benchmark 11478.769100512309

:heavy_check_mark: Decodingfromraw (Threshold: 250.0)

Benchmark Value
master_benchmark 7423.893517050335
helios_benchmark 7434.188256050897

:heavy_check_mark: Parsing (Threshold: 250.0)

Benchmark Value
master_benchmark 19119.60730717652
helios_benchmark 23165.268030760286