MapReplay: Trace-Driven Benchmark Generation for Java HashMap

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Schiavio, Filippo, Rosà, Andrea, Löff, Júnior, Bulej, Lubomír, Tůma, Petr, Binder, Walter
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917342114480128
author Schiavio, Filippo
Rosà, Andrea
Löff, Júnior
Bulej, Lubomír
Tůma, Petr
Binder, Walter
author_facet Schiavio, Filippo
Rosà, Andrea
Löff, Júnior
Bulej, Lubomír
Tůma, Petr
Binder, Walter
contents 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 operation sequence while faithfully reconstructing internal map states. This enables realistic and efficient evaluation of alternative implementations under realistic usage patterns. Applying MapReplay to DaCapo-Chopin and Renaissance, the resulting suite, MapReplayBench, reproduces application-level performance trends while reducing experimentation time and revealing insights difficult to obtain from full benchmarks.
format Preprint
id arxiv_https___arxiv_org_abs_2603_14019
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle MapReplay: Trace-Driven Benchmark Generation for Java HashMap
Schiavio, Filippo
Rosà, Andrea
Löff, Júnior
Bulej, Lubomír
Tůma, Petr
Binder, Walter
Programming Languages
Performance
Software Engineering
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 operation sequence while faithfully reconstructing internal map states. This enables realistic and efficient evaluation of alternative implementations under realistic usage patterns. Applying MapReplay to DaCapo-Chopin and Renaissance, the resulting suite, MapReplayBench, reproduces application-level performance trends while reducing experimentation time and revealing insights difficult to obtain from full benchmarks.
title MapReplay: Trace-Driven Benchmark Generation for Java HashMap
topic Programming Languages
Performance
Software Engineering
url https://arxiv.org/abs/2603.14019