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

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

        def start(bid, description = 'Benchmark'):

    # Use /dev/random because uuid.uuid4 is broken on the mac using multiprocessing
    f = open('/dev/random', 'rb')
    b = f.read(16)
    f.close()
    bid = str(uuid.UUID(bytes=b))

    # Build our initial dictionary
    _timings[bid] = {'description': description, 'start': time.time(), 'end': -1}
    return bid
        


src/k/v/kvpbench-HEAD/kvpbench.py   kvpbench(Download)
 
    if options.load:
        bid = core.bench.start('Load Test')
        benchmark = adapter.Benchmark(**args)
        if benchmark.load(options.data):