kern-sandbox 0.1.41 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -242,6 +242,11 @@ so a `runCode` claims one instead of paying for a box start plus an interpreter
|
|
|
242
242
|
`python:3.12-slim`, six calls each: **14.2 ms p50 by default against 0.8 ms with `prewarm: 4`**, and
|
|
243
243
|
30.9 ms against 0.9 for the first call.
|
|
244
244
|
|
|
245
|
+
**The pool also fills on that worker thread, so the first call is fast only once it HAS filled.**
|
|
246
|
+
Measured: constructing with `prewarm: 4` and calling immediately gives 13.7 ms five times over,
|
|
247
|
+
while half a second later the same burst reads 0.8, 0.6, 0.5, 0.6 for the first four and then
|
|
248
|
+
32.7 for the fifth, the pool empty. The table is the steady state, not the first moment.
|
|
249
|
+
|
|
245
250
|
The refill runs while your agent thinks, so it is off the caller's clock. That also says when it buys
|
|
246
251
|
nothing: if calls arrive faster than the pool refills, the pool empties and you are back to the
|
|
247
252
|
default cost. N is the burst you want covered, not a throughput knob.
|
package/index.js
CHANGED
|
@@ -36,7 +36,7 @@ const crypto = require("crypto");
|
|
|
36
36
|
const zlib = require("zlib");
|
|
37
37
|
const { spawn, spawnSync } = require("child_process");
|
|
38
38
|
|
|
39
|
-
const VERSION = "0.1.
|
|
39
|
+
const VERSION = "0.1.42";
|
|
40
40
|
|
|
41
41
|
const DEFAULT_IMAGE = "python:3.12-slim";
|
|
42
42
|
const WORKSPACE = "/workspace"; // where the persistent workspace is mounted inside every box
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kern-sandbox",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"description": "kern is a fast, rootless sandbox and virtual resource runtime for any workload, including untrusted and AI-generated code; kern-sandbox is its Node/TypeScript binding. Run untrusted or agent-generated code (Python/JS/Bash) in a real, kernel-enforced box in single-digit milliseconds, with no cloud, no account and no VM.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sandbox",
|