Performance Considerations

The following factors may affect performance benchmarks

Performance Considerations

The following factors may affect performance benchmarks:

  • Cold startup: Cloud Function spends additional time on the initial invocation to decrypt and load the policy into memory. This time can vary depending on the policy size. Once the Function is initialized, subsequent “warm executions” should process quickly.
  • Size of policy: The size of the policy impacts cold start performance. Larger policies take more time to initialize.
  • Cloud Function memory: GCP provides more virtual cores based on the memory configuration. The initial configuration of 2048 MB provides a good tradeoff between performance and cost with the benchmarked policy. Memory can be increased to optimize for your individual cases.
  • Number of security operations (protect or unprotect).
  • Cloud Function max instances and concurrency quota: The instance limit affects how functions are scaled. By default the limit is not set to allow handling any traffic pattern. The instance limit can be set to prevent abnormally high request levels. Cloud Functions are also subject to maximum quota for concurrent invocations and request rate.
  • Size of data element: Operations on larger text consume time.

Last modified : March 31, 2026