Code Execution
Resource Limits
Code execution resource limits and sandboxing defaults
Sandbox limitations
Most of these limitations are temporary. Our roadmap indicates the restrictions we plan on lifting.
Currently, sandboxed code only has access to the input data you provide.
You can provide command-line arguments and environment variables, as well as stdin
.
There is no filesystem access. There is no network access.
There is no dependency management or customization. Each interpreter has access to its language’s standard library.
There is no support for alternative interpreter versions.
See the Python, JavaScript, Ruby and PHP interpreter pages for additional information regarding interpreter-specific limitations.
Quotas
Resource | Quota |
---|---|
Input code size | 1MiB |
Size of stdin | 10MiB |
Size of stdout | 20MiB |
Size of stderr | 10MiB |
Number of environment variables | 100 |
Environment variable key size | 4KiB |
Environment variable value size | 100KiB |
Number of arguments | 100 |
Argument size | 100KiB |
Execution duration | 30 seconds |
Memory consumption | 128Mib |