summaryrefslogtreecommitdiff
path: root/source3/python/examples/tdbpack/tdbtimetrial.py
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-09-10 08:36:55 +0000
committerMartin Pool <mbp@samba.org>2002-09-10 08:36:55 +0000
commit31737ace97c3b614adb66a228157e20a43e31054 (patch)
tree97109c1177785dabaa78a96bc1729f352a73e51e /source3/python/examples/tdbpack/tdbtimetrial.py
parentd4b6d5db9145ae62c99e2432cf524f83fdc72277 (diff)
downloadsamba-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-xsource3/python/examples/tdbpack/tdbtimetrial.py12
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()