"You can get sucky performance from anything - and even well written code can produce bad performance, so I don't even assume that the code was badly written. Any non-trivial app really needs performance testing, and quite probably performance tuning too."
"A way to regression test for a fixed memory leak is to create a weak reference to the object, exercise the code that used to cause the memory leak, then full GC (and run finalizers) several times and then check that that the weak reference now has a null referent."