cloudflare / cloudflare/workers-sdk

🐛 BUG: wrangler struggles to respond to a benchmarking run

Open
#6,517 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.5k
Forks
1.5k
Avg merge
3d 8h
Merged PRs (30d)
187

Description

### Which Cloudflare product(s) does this pertain to?

Wrangler

### What version(s) of the tool(s) are you using?

wrangler@3.72.0

### What version of Node are you using?

v20.14.0

### What operating system and version are you using?

Mac OS

### Describe the Bug

### Observed behavior
Running a simple worker with wrangler, I use node to send it 500 requests. It struggles to respond to the requests, taking too many seconds, and a bunch of them fail with 503s

### Expected behavior
It shouldn't struggle, and respond quickly.

Why is it important? If we're claiming that Workers is good for high performance scenarios, we should be able to test such scenarios locally (on much more powerful machines). This particular scenario isn't even that heavy, so it's concerning that wrangler can't support it, and is indicative of some deeper problems.

### Steps to reproduce
Full repro and instructions at https://github.com/threepointone/worker-bench-errors

### Please provide a link to a minimal reproduction

https://github.com/threepointone/worker-bench-errors

### Please provide any relevant error logs

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the full reproduction and instructions in threepointone/worker-bench-errors, using wrangler@3.72.0 on Node v20.14.0 as reported. Run the 500-request benchmark and inspect where requests become slow or return 503s. Done means identifying and fixing the local Wrangler bottleneck so the benchmark responds reliably without those failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
cli, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.