Skip to content

Instantly share code, notes, and snippets.

@rwarren
rwarren / get_buffer_bench.py
Created March 23, 2020 13:56 — forked from 1st1/get_buffer_bench.py
get_buffer_bench.py
import struct
try:
from time import perf_counter as clock
except ImportError:
from time import time as clock
import asyncio
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())