Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/l/a/labere-HEAD/benchmarks/database.py   labere(Download)
    print 'registering a user..'
    benchmarking.start('reg one user')
    db.register_user('user', 'pasword')
    benchmarking.stop('reg one user')
    print 'modifying user metadata..'
    print '[INTENSE] registering 50,000 users..'
    benchmarking.start('register 50000 users')
    [db.register_user('%s' % (user), 'password') for user in iusers]
    benchmarking.stop('register 50000 users')
    print 'closing database..'