Skip to content

Performance issue #9

@Crystark

Description

@Crystark

Hi,

While trying to find something that outperforms GSON, I found Boon and some pretty promising benchmarks:
https://github.com/bura/json-benchmarks

I'm currently working on a web service that takes in alot of small (up to 100kb) JSON strings and needs to decode those to a POJO.

So right now with GSON I hit 55k QPS in my test environment and when I just switch from GSON to Boon, I only hit about 45k QPS.

I can't help but think i'm doing something wrong.

MyObject object = JsonFactory.fromJson(content, MyObject.class);
// MyObject object = gson.fromJson(content, MyObject.class);

I noticed the benchmark I linked up there uses the JsonFastParser which only deserializes to an Object unlike Jackson and GSON that deserializes to the actual Type which may be the reason why it outperforms them so much.

Am I missing something here to make it faster ?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions