Skip to content

Are there any microbenchmarks to check the performance impact against enabled the StrictNullChecks feature?Β #567

@ryszardmakuch

Description

@ryszardmakuch

I am considering enabling the StrictNullChecks feature in production. However, In the Javadoc I can see following statement:

Enabling it protects against this but has significant performance impact.

/**
* This feature represents whether to check deserialized collections.
*
* With this disabled, the default, collections which are typed to disallow null members (e.g. `List<String>`)
* may contain null values after deserialization.
* Enabling it protects against this but has significant performance impact.
*/
StrictNullChecks(enabledByDefault = false);

Are there any benchmarks to check the performance against the enabled and disabled feature? If not, would you like me to contribute the microbenchmark suite by creating a dedicated pull request?

I found that @k163377 used jmh to give you some numbers to prove significant improvement in deserialization speed #439 but those tests are not part of the jackson-module-kotlin project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions