I completely agree with point 6, obviously these microbenchmarks are not representative of much of anything, I was just trying to check my assumptions on some of this stuff.
I actually knew about the Guava asMap(), but I wasn't sure if that introduced overhead and I thought that might be an unfair test.
I have heard of Caffeine, but I haven't used it yet. Maybe I'll write an updated post talking about it.
I'll look into JMH and make a part 2 of this post tomorrow.
I actually knew about the Guava asMap(), but I wasn't sure if that introduced overhead and I thought that might be an unfair test.
I have heard of Caffeine, but I haven't used it yet. Maybe I'll write an updated post talking about it.
I'll look into JMH and make a part 2 of this post tomorrow.