diff options
author | Martin Pool <mbp@samba.org> | 2002-09-10 08:36:55 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-09-10 08:36:55 +0000 |
commit | 31737ace97c3b614adb66a228157e20a43e31054 (patch) | |
tree | 97109c1177785dabaa78a96bc1729f352a73e51e /source3/python/examples/tdbpack/tdbtimetrial.py | |
parent | d4b6d5db9145ae62c99e2432cf524f83fdc72277 (diff) | |
download | samba-31737ace97c3b614adb66a228157e20a43e31054.tar.gz samba-31737ace97c3b614adb66a228157e20a43e31054.tar.bz2 samba-31737ace97c3b614adb66a228157e20a43e31054.zip |
Check in examples for tdb packer
(This used to be commit e8f9fbd32b73f60db3683d23a979dc09e7204258)
Diffstat (limited to 'source3/python/examples/tdbpack/tdbtimetrial.py')
-rwxr-xr-x | source3/python/examples/tdbpack/tdbtimetrial.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/python/examples/tdbpack/tdbtimetrial.py b/source3/python/examples/tdbpack/tdbtimetrial.py new file mode 100755 index 0000000000..be6404899d --- /dev/null +++ b/source3/python/examples/tdbpack/tdbtimetrial.py @@ -0,0 +1,12 @@ +#! /usr/bin/python2.2 + +def run_trial(): + # import tdbutil + from samba.tdbpack import pack + + for i in xrange(500000): + pack("ddffd", (10, 2, "mbp", "martin", 0)) + #s = "\n\0\0\0" + "\x02\0\0\0" + "mbp\0" + "martin\0" + "\0\0\0\0" + +if __name__ == '__main__': + run_trial() |