P-Y on Nostr: As I'm poking around tests, I look at the different layers of tests I have for ...
As I'm poking around tests, I look at the different layers of tests I have for ObjectGrowthDetector.
I have a test class that operates on in memory fake heap dumps, defined using a DSL and operated on as in memory byte arrays. It runs 12 tests in 100 ms.
I have a test class that operates on the heap of the test itself, leveraging hotspot heap dump APIs, which dumps into a temp file on the file system. It runs 10 tests in 9.5 seconds.
10 seconds vs 100 ms.
I have a test class that operates on in memory fake heap dumps, defined using a DSL and operated on as in memory byte arrays. It runs 12 tests in 100 ms.
I have a test class that operates on the heap of the test itself, leveraging hotspot heap dump APIs, which dumps into a temp file on the file system. It runs 10 tests in 9.5 seconds.
10 seconds vs 100 ms.