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.
Published at
2024-05-16 17:04:08Event JSON
{
"id": "696396bb3feca684ae84a1bcc6a9df8bba29222025d8c24bbb8576dfe98bdcfc",
"pubkey": "2b9c6c28bce249a1ef28497a2ec6f6c01bc7be0721124b8ce7da3e1592080c57",
"created_at": 1715879048,
"kind": 1,
"tags": [
[
"e",
"d78dd189c57b8ccbd86569a99eb4c67fa0a7c9ffb411f425db024cacdeef8f86",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://androiddev.social/users/py/statuses/112451849351469606",
"activitypub"
]
],
"content": "As I'm poking around tests, I look at the different layers of tests I have for ObjectGrowthDetector.\n\nI 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.\n\nI 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.\n\n10 seconds vs 100 ms.",
"sig": "4213f3921614c240d6c46743fc4faee3d796edfdffca2ae9996b03a5e8a98454621e80ff2553139a3f933d8212dc55b5de7fca6249c415004643c38f45045d94"
}