Skip to content

Instantly share code, notes, and snippets.

@irensaltali
Created December 7, 2020 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irensaltali/7fe487688b2d6e4595dd21fb8a5e9ad6 to your computer and use it in GitHub Desktop.
Save irensaltali/7fe487688b2d6e4595dd21fb8a5e9ad6 to your computer and use it in GitHub Desktop.
Lambda Container Image Benchmark Funstion
public APIGatewayProxyResponse FunctionHandler(APIGatewayProxyRequest input, ILambdaContext context)
{
var s = new SortedSet<int>();
for (int n = 0; n < 100_000; n++)
{
s.Add(n);
}
for (int i = 0; i < 10_000_000; i++)
{
var tmpVar = s.Min;
}
return new APIGatewayProxyResponse
{
Body = "Done",
StatusCode = 200
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment