summaryrefslogtreecommitdiff
path: root/source4/python/examples/tdbpack/tdbtimetrial.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/python/examples/tdbpack/tdbtimetrial.py')
-rwxr-xr-xsource4/python/examples/tdbpack/tdbtimetrial.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/python/examples/tdbpack/tdbtimetrial.py b/source4/python/examples/tdbpack/tdbtimetrial.py
new file mode 100755
index 0000000000..be6404899d
--- /dev/null
+++ b/source4/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()