Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boristane/js-runtimes-comparison
https://github.com/boristane/js-runtimes-comparison
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/boristane/js-runtimes-comparison
- Owner: boristane
- License: mit
- Created: 2022-11-22T13:35:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T13:36:03.000Z (about 2 years ago)
- Last Synced: 2024-11-23T01:42:30.160Z (2 months ago)
- Language: JavaScript
- Size: 31.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lambda-js-runtimes-comparison
Comparing JavaScript runtimes on AWS Lambda.
## Intro
I'm deploying a sample application to AWS Lambda using multiple JS runtimes.
- node
- deno
- bunThe applications is a single endpoint `GET /`. It takes as query string parameter the English name of a pokemon and returns more details about the pokemon.
All Lambda functions have the same memory size: `512`.
I'll use [Baselime](https://baselime.io) to compare various metrics about the execution.
## Simulate traffic
To simulate traffic on the service:
```bash
node ping.js
```## Deployment
I looked for the easiest way to deploy each runtime.
- Node: using the [serverless](https://serverless.com) framerowk
- Deno: using the [Arc](https://arc.codes) framework
- Bun: I used a pre-compiled version of bun, and the deployment is done with CloudFormation and custom run-times## Dataset
Data for the pokedex from [here](https://github.com/fanzeyi/pokemon.json)