Created
December 7, 2020 14:18
-
-
Save irensaltali/7fe487688b2d6e4595dd21fb8a5e9ad6 to your computer and use it in GitHub Desktop.
Lambda Container Image Benchmark Funstion
This file contains 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
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