1. 03 Dec, 2012 11 commits
  2. 22 Nov, 2012 10 commits
  3. 21 Nov, 2012 10 commits
  4. 20 Nov, 2012 1 commit
  5. 19 Nov, 2012 6 commits
  6. 18 Nov, 2012 2 commits
    • Rusty Russell's avatar
      tal: add benchmark based on Samba4's talloc usage. · 5e0d0dcb
      Rusty Russell authored
      This is based on a very simple dump of S4's talloc tree, which we try
      to duplicate using tal.  The benchmarks are simply to allocate all the
      nodes, free all the nodes individually, and a top-level free.
      
      Size results (32-bit x86):
      	$ ./samba-allocs talloc.dump --talloc-size
      	Read 25998 nodes
      	Virtual size = 10469376, RSS = 4759552
      	$ ./samba-allocs talloc.dump --tal-size
      	Read 25998 nodes
      	Virtual size = 9629696, RSS = 3948544
      
      Speed results:
      	$ ./samba-allocs talloc.dump
      	Read 25998 nodes
      	Malloc time:             1912082ns
      	Free time:               1384892ns
      	Talloc time:             2851531ns
      	talloc_free time:        2133801ns
      	Single talloc_free time: 1696298ns
      	Tal time:                2686952ns
      	Tal_free time:           3316153ns
      	Single tal_free time:    1639407ns
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      5e0d0dcb
    • Rusty Russell's avatar
      tal: add talloc's speed benchmark. · de8e8cf2
      Rusty Russell authored
      We modify it a bit (to do more allocations before freeing).
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      de8e8cf2