MCPcopy
hub / github.com/redis/redis-py / lpop

Function lpop

benchmarks/cluster_async.py:150–158  ·  view source on GitHub ↗
(client, gather)

Source from the content-addressed store, hash-verified

148
149@timer
150async def lpop(client, gather):
151 if gather:
152 for _ in range(count // 100):
153 await asyncio.gather(
154 *(asyncio.create_task(client.lpop("bench:lpush")) for i in range(100))
155 )
156 else:
157 for i in range(count):
158 await client.lpop("bench:lpush")
159
160
161@timer

Callers 1

runFunction · 0.70

Calls 1

lpopMethod · 0.80

Tested by

no test coverage detected