Send/Deleting in Bulk via CF API is super slow in Workers

It seems that send/delete in bulk from KV via the API is really slow… it takes more than 10 seconds for the CF API to reply.

Frankly I`m quite new to TypeScript, but I’ve done some research and testing to make the code perform as fast as possible.

I will leave my snippets here in case someone needs it, and please give me your thoughts on why this is so slow.

https://gist.github.com/Mecanik/e95961d091065a71a4589440beefc73e