예제 #1
0
def test_fast_uuidv3(benchmark):
    benchmark(fastuuid3, fastuuid4(), b"benchmark")
예제 #2
0
def test_fast_uuidv5(benchmark):
    benchmark(fastuuid5, fastuuid4(), b"benchmark")
예제 #3
0
 def b():
     pool = ThreadPoolExecutor(max_workers=8)
     for _ in range(8):
         pool.submit(lambda: [str(fastuuid4()) for _ in range(1000)])
     pool.shutdown(wait=True)