Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (17 loc) · 665 Bytes

File metadata and controls

25 lines (17 loc) · 665 Bytes

Minimal Function

The Minimal project consists of the absolute least amount of code required by an invocable Lambda function.

The purpose of this project is to establish a baseline for all other .NET Lambda functions. Measurements of this Lambda function represent the lower bound of the AWS Lambda runtime for .NET projects.

Code

using System.IO;
using System.Threading.Tasks;

namespace Benchmark.Minimal {

    public sealed class Function {

        //--- Methods ---
        public async Task<Stream> ProcessAsync(Stream request) {

            // it doesn't get more minimal than this!
            return Stream.Null;
        }
    }
}