feat(sandbox): pricing benchmark tracking provider rates over time - #453
Draft
HeyGarrison wants to merge 1 commit into
Draft
HeyGarrison wants to merge 1 commit into
HeyGarrison wants to merge 1 commit into
Conversation
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
sandbox-pricingbenchmark that turns provider pricing into a tracked time series, same shape assandbox-dax: weekly run →results/sandbox-pricing/<YYYY-MM-DD>.json+latest.json, which dotcom reads off raw.githubusercontent.com (used to keep/comparehonest over time).benchmarks/sandbox/pricing.ts—PRICING_PROVIDERS: 26 sandbox providers, each with its public pricing page URL andextractors({key, pattern, scale?}). Each pattern captures the literal price figure printed on the page (e.g.0.000014→ ×3600 for per-second → per-hour).hourlyRate(rates)reduces extracted units to a comparable $/hr at the Dax spec (8 vCPU / 16 GiB); providers quoted per-core (Beam, Modal) use4 * coreHour + 16 * gibHour.benchmarks/sandbox/pricing.bench.ts— declarative bench, 1 iteration per provider, all fetched in parallel, no credentials needed. Task returnsdata: {hourlyRate, rates, fieldsMatched, fieldsTotal, httpStatus}; extraction misses and HTTP errors are recorded rather than thrown — a provider whose page stops matching is the signal this benchmark exists to catch.pricing-legacy-results.ts—onCompletebridge writing the dated +latest.jsonresults files..github/workflows/sandbox-pricing-benchmarks.yml— weekly Wednesday run + workflow_dispatch, commits results tomasterlike the Dax workflow.Verified locally with
--no-ingest: 24/26 providers extract cleanly and match the verified rates on the compare page (e.g. e2b $0.6624, modal $0.9518, vercel $1.3632). Two known misses that stay recorded as misses: CodeSandbox (403 bot-block) and CreateOS (JS-rendered page).Link to Devin session: https://app.devin.ai/sessions/6f63e57c31da447b95f7580d3324b40b
Open in Devin Desktop: https://app.devin.ai/desktop/session/6f63e57c31da447b95f7580d3324b40b?variant=devin
Requested by: @HeyGarrison