MapReplay: Trace-Driven Benchmark Generation for Java HashMap
Filippo Schiavio, Andrea Ros\`a, J\'unior L\"off, Lubom\'ir Bulej, Petr T\r{u}ma, Walter Binder

TL;DR
MapReplay is a benchmarking method that creates realistic, efficient HashMap performance tests by replaying operation sequences and internal states, bridging the gap between microbenchmarks and full application benchmarks.
Contribution
It introduces MapReplay, a novel approach that combines realism and efficiency for HashMap benchmarking by replaying operation sequences and internal states.
Findings
Reproduces application-level performance trends accurately.
Reduces benchmarking time significantly.
Reveals insights difficult to observe with full benchmarks.
Abstract
Hash-based maps, particularly java.util.HashMap, are pervasive in Java applications and the JVM, making their performance critical. Evaluating optimizations is challenging because performance depends on factors such as operation patterns, key distributions, and resizing behavior. Microbenchmarks are fast and repeatable but often oversimplify workloads, failing to capture the realistic usage patterns. Application benchmarks (e.g., DaCapo, Renaissance) provide realistic usages but are more expensive to run, prone to variability, and dominated by non-HashMap computations, making map-related performance changes difficult to observe. To address this challenge, we propose MapReplay, a benchmarking methodology that combines the realism of application benchmarks with the efficiency of microbenchmarks. MapReplay traces HashMap API usages generating a replay workload that reproduces the same…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware System Performance and Reliability · Software Testing and Debugging Techniques · Software Engineering Research
