repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
include updates
[tomato.git]
/
release
/
src-rt-6.x.4708
/
router
/
samba-3.0.25b
/
source
/
python
/
examples
/
tdbpack
/
tdbtimetrial.py
blob
be6404899d82348e3713e637fbcc84911fe7579b
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
()