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

Latest commit

 

History

History
27 lines (19 loc) · 669 Bytes

File metadata and controls

27 lines (19 loc) · 669 Bytes

System.Text.Json Function

The SystemTextJson project uses the System.Text.Json runtime JSON serializer.

The purpose of this project is compare the System.Text JSON serializer performance for cold- and warm- starts with alternatives.

Code

using System.IO;
using System.Threading.Tasks;
using Amazon.Lambda.Core;
using Amazon.Lambda.Serialization.SystemTextJson;

[assembly:LambdaSerializer(typeof(DefaultLambdaJsonSerializer))]

namespace Benchmark.SystemTextJson {

    public sealed class Function {

        //--- Methods ---
        public async Task<Stream> ProcessAsync(Root request) {
            return Stream.Null;
        }
    }
}