MAD事業部@大阪の岩田です。 先日NODE_OPTIONS=–enable-source-mapsを有効化したLambdaのパフォーマンスが遅くなる現象に遭遇しました。 この事象について調べた際以下のツイートが検索にヒットし、そこからNode.jsのLambda functionをプロファイルするのに使えるmiddy-profilerというライブラリを知りました Spent most of the day hunting a performance issue with Node.js on AWS lambda, found it, and fixed it. Execution time. Before: 1s, after: 150ms To track and optimize such performance issues, read this quick debugging-