~ubuntu-branches/ubuntu/maverick/samba/maverick-proposed

« back to all changes in this revision

Viewing changes to source/python/examples/tdbpack/tdbtimetrial.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-10-15 12:31:58 UTC
  • Revision ID: james.westby@ubuntu.com-20041015123158-aokykzdqkdgy6dfx
Tags: upstream-3.0.7
ImportĀ upstreamĀ versionĀ 3.0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/python2.2
 
2
 
 
3
def run_trial():
 
4
    # import tdbutil
 
5
    from samba.tdbpack import pack
 
6
    
 
7
    for i in xrange(500000):
 
8
        pack("ddffd", (10, 2, "mbp", "martin", 0))
 
9
        #s = "\n\0\0\0" + "\x02\0\0\0" + "mbp\0" + "martin\0" + "\0\0\0\0"
 
10
 
 
11
if __name__ == '__main__':
 
12
    run_trial()