Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Latest commit

 

History

History
22 lines (15 loc) · 589 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 589 Bytes

Prisma lambda cold start profiling

How to reproduce:

  • Configure AWS credentials
  • npm run deploy

Output will be:

Stack temp-prisma-client-repro-my-stack
  Status: deployed
  Outputs:
    ApiEndpoint: https://3ve1rtcjv4.execute-api.us-east-1.amazonaws.com
  • time curl https://3ve1rtcjv4.execute-api.us-east-1.amazonaws.com/no-prisma

  • time curl https://3ve1rtcjv4.execute-api.us-east-1.amazonaws.com/prisma

  • To view precise timing details visit the AWS x-ray console and look at the function traces, specifically the "Initialization" segments:

xray