Skip to content

Improve throughput benchmarks #29

@leventov

Description

@leventov
  1. Use JMH
  2. Create less garbage; don't invoke expensive Integer.toString() in the tight loop.
    Simple profiling shows that significant portion of benchmark time is spent in Integer.toString(); hence benchmarks results are "shifted" and could make wrong impression on the actual performance difference between the benchmarked stores. Creating garbage makes garbage collection to kick in unpredictably during benchmarking, that makes results less representative as well.

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