Python Density & Payload Benchmarks - #6897
Open
george-kalisse-sada wants to merge 1 commit into
Open
Conversation
george-kalisse-sada
force-pushed
the
SADA_3a_python_payload_benchmarks
branch
from
August 5, 2026 17:40
bdab832 to
445ff49
Compare
|
/cc @Nishanth29 |
Nishanth29
reviewed
Aug 7, 2026
|
|
||
| successful = result.get("successful_sessions", 0) | ||
| failed = result.get("failed_sessions", 0) | ||
| agg = result.get("aggregate", {}) |
There was a problem hiding this comment.
If the API returns aggregate as null on an error, agg.get(...) below might throw a NoneType error. maybe we can do agg = result.get("aggregate") or {} instead?
|
|
||
| successful = result.get("successful_sessions", 0) | ||
| failed = result.get("failed_sessions", 0) | ||
| agg = result.get("aggregate", {}) |
There was a problem hiding this comment.
same here, if aggregate comes back null on a failure, result.get("aggregate", {}) returns None. we can use result.get("aggregate") or {} here too
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.
Files: 2 new files
perfkitbenchmarker/linux_benchmarks/kubernetes/agentic/k8s_python_density_benchmark.pyperfkitbenchmarker/linux_benchmarks/kubernetes/agentic/k8s_payload_benchmark.pyDescription: Adds two Python-focused GKE Agent Sandbox benchmarks:
Python Density: Measures Code Execution Latency (CEL), TTFE, RSS memory growth, and per-type latency breakdown (compute, syscall, import) at varying concurrent sandbox counts. Designed for density saturation sweeps.
Payload Transfer: Measures the cost of returning large observation payloads from gVisor sandboxes. Breaks down generation, serialization, stdout write, and total transfer time with throughput metrics.