sandbox-benchmark

command
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command sandbox-benchmark stress-tests sandbox creation latency by running a series of concurrency levels, launching N sandboxes at each level and measuring create API response time and time-to-running.

Each concurrency level is repeated R times (default 1). The summary reports mean±std across repeats for each percentile.

Usage:

export TENSORLAKE_API_KEY=<your-api-key>
go run ./examples/sandbox-benchmark -con 1,10,100
go run ./examples/sandbox-benchmark -repeat 5 -con 1,10,100,1000

Flags:

-con       Comma-separated concurrency levels (default: 1,10,100)
-repeat    Number of times to repeat each concurrency level (default: 1)
-timeout   Sandbox timeout in seconds (default: 120)
-poll      Poll interval for status checks (default: 100ms)
-max-wait  Maximum wait time per sandbox before giving up (default: 120s)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL