Open ChrisTrenkamp opened 2 years ago
I think that would be a valuable addition to the benchmark. Not sure how familiar you are with this codebase, but if you're interested in adding this yourself:
forward
and reverse
methods to convert between the "tpc/src/data/media" types and your new record-based types.One thing that might concern people is the dependency on Java 16. But I dunno, maybe it's fine?
https://blogs.oracle.com/javamagazine/post/simpler-object-and-data-serialization-using-java-records
Oracle is claiming ObjectOutputStream/ObjectInputStream have optimizations for Java Records. Can we implement a benchmark to see if Java serialization is any faster with records rather than plain classes?