Re: FW: How to benchmark memory managers?
David Detlefs - Sun Microsystems Labs BOS <[email protected]> Wed, 12 Jan 2005 14:00:04 -0500
| Newsgroups | gmane.comp.programming.garbage-collection.general |
|---|---|
| Message-ID | <[email protected]> |
Calum writes: > Another point, which I don't know if it is addressed in the > measurements. What about objects allocated on the stack? Okay, many > applications don't allocate significant proportions of objects on the > stack, but for those that do, there is a significant performance boost. > > So really one wishes to compare GC vs malloc+stack. One cannot simply > pretend that an application using malloc/new does not use the stack. True, but one should also note that escape analysis, say used in a JIT compiler, can often prove that a sufficiently simple use of a heap-allocated object (say one that is a straightforward translation of the use of a stack-allocated structure in C++) is in fact stack-allocatable. -- ============================================= AntiSpamString: nix flubber now ============================================================================= Dave Detlefs http://www.sunlabs.com/people/detlefs/ Sun Microsystems Laboratories [email protected] 1 Network Drive, Burlington, MA 01803-0902 (781)-442-0841