Git Product home page Git Product logo

scala-lambda-runtimes's Introduction

Scala AWS Lambda Runtimes

This repo contains a setup to compare the cold startup times of the lambdas written is scala.

p95_total

Runtime Min (ms) P95 (ms) Max (ms) Memory used (MB) Package size (MB)
Java8 4128 4867 4953 72 5.7
Java8 Proguard 1373 1733 1957 62 0.446
Java11 4298 5181 5274 96 5.7
Java11 JLink 3061 5162 6051 128 23
NodeJS 12 125 240 378 65 0.0022
Graal Native 230 356 413 58 9.3

The raw execution results can be found in the /executions folder. The data is collected with the CloudWatch Logs Insights using this query:

    filter @type = "REPORT"
    
    | fields @timestamp as Timestamp, @initDuration as InitDurationInMS, @duration as DurationInMS, @billedDuration as BilledDurationInMS, @memorySize/1000000 as MemorySetInMB, @maxMemoryUsed/1000000 as MemoryUsedInMB
    | sort Timestamp desc
    | head 200

Building and packaging Lambdas

make build_all

Deploying all the Lambdas

make serverless command="serverless deploy"

Measuring the cold starts

make serverless command="lumigo-cli measure-lambda-cold-starts --functionName=scala-lambda-runtimes-dev-jvmLambda8 --invocations=100 --region=us-east-1"

Destroying AWS resources

make serverless command="serverless remove"

scala-lambda-runtimes's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.