"Treat your kid like a darling for the first five years. For the next five years, scold them. By the time they turn sixteen, treat them like a friend. Your grown up children are your best friends." Chanakya (Indian politician, strategist and writer, 350 BC-275 BC )
 

Main Menu

Home
Articles
SVTechie Blog
Links
Download
Discussion Forum
Photo Gallery
Quick Bites
FAQs

Login






Lost Password?
No account yet? Register

Statistics

We have 2 guests online

SVTechie Recommends


powered_by.png, 1 kB

Text Links


Home
Dynamic Memory Allocation Performance PDF Print E-mail
Written by SVTechie   
Sunday, 09 April 2006
Article Index
Dynamic Memory Allocation Performance
Quick Notes on Memory Allocation
ANSI C Linked List Code
C Linked List Code
Record Collapsing
Pool Based Library Implementation
Conclusion

 

 

 

Performance Summary for each solution is presented below. 

 

 Performance Summary

 Number of Requests: 5000000
---------------------------
         ANSI C       C++      Collapse    Pool Based

real    0m2.808s   0m4.532s    0m0.292s        0m0.490s

user    0m2.523s   0m4.376s    0m0.160s        0m0.460s

sys     0m0.220s   0m0.110s    0m0.040s        0m0.050s

Number of Requests: 10000
--------------------------
         ANSI C       C++      Collapse    Pool Based

real    0m0.043s   0m0.055s    0m0.039s        0m0.041s

user    0m0.030s   0m0.040s    0m0.030s        0m0.030s

sys     0m0.020s   0m0.020s    0m0.020s        0m0.030s

Number of Requests: 100
------------------------
         ANSI C       C++     Collapse    Pool Based

real    0m0.037s   0m0.042s    0m0.035s        0m0.033s

user    0m0.030s   0m0.020s    0m0.030s        0m0.020s

sys     0m0.020s   0m0.030s    0m0.020s        0m0.030s

 

As it is evident, algorithm selection criteria depends on requirements but for high performance system, some kind of special provision is necessary.  As evident here, in a big data management system, pool based implementation is the winner because of ease of use and performance gain. In smaller systems, probably using simple mechanism is good enough.

Acknowldgement - Some of the information is compiled from following sites. 


Disclaimer, the evil necessity: Posted views are of author only and this website is no way responsible for any damages caused by usage of this information.



Last Updated ( Saturday, 06 May 2006 )
 
Next >
Nike Air Forces | Mortgage Calculator | Loans | Secured Loans | MySpace Images
© 2008 SVTechie :: Online Resources For Techies BY Techies
Joomla! is Free Software released under the GNU/GPL License.