Skip to content

Commit 78e259a

Browse files
GregBrimbleclaude
andauthored
perf: increase binary search experiment sample rate to 50% (#9892)
Increase the binary search experiment sample rate from 5% to 50% to gather more performance data on the optimized implementation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <[email protected]>
1 parent 05adc61 commit 78e259a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fine-candies-do.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/workers-shared": patch
3+
---
4+
5+
perf: increase binary search experiment sample rate to 50%

packages/workers-shared/asset-worker/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export default class<TEnv extends Env = Env> extends WorkerEntrypoint<TEnv> {
232232
pathname: string,
233233
_request?: Request
234234
): Promise<string | null> {
235-
const BINARY_SEARCH_EXPERIMENT_SAMPLE_RATE = 0.05;
235+
const BINARY_SEARCH_EXPERIMENT_SAMPLE_RATE = 0.5;
236236
const binarySearchVersion =
237237
Math.random() < BINARY_SEARCH_EXPERIMENT_SAMPLE_RATE
238238
? "current"

0 commit comments

Comments
 (0)