All Projects → matteo-ronchetti → Aws Lambda Power Tuning Ui

matteo-ronchetti / Aws Lambda Power Tuning Ui

Licence: apache-2.0
UI to visualize the results of https://github.com/alexcasalboni/aws-lambda-power-tuning

Programming Languages

javascript
184084 projects - #8 most used programming language

AWS Lambda Power Tuning UI

Maintenance GitHub license Open Source Love svg2

This project provides a simple UI to visualize the results of AWS Lambda Power Tuning. The UI is a static HTML page that reads data from URL hash.

Sample Screenshot

Local building and execution

First you need to clone the source and install the bundler by running

git clone https://github.com/matteo-ronchetti/aws-lambda-power-tuning-ui.git
cd aws-lambda-power-tuning-ui
npm install git+https://gitlab.com/matteo-ronchetti/rosh-bundler.git

Then run

node bundler.js

to build and serve at localhost:3000.

URL query string format

The URL hash is formatted as <lambda_size>;<execution_time>;<execution_cost> where each parameter <x> is a list encoded in base64 with proper data type (int16 for size, float32 for time and cost).

This can be achieved using the encode function defined here:

let sizes = [128, 256, 512, 1024, 1536];
let times = [16.0, 8.0, 4.0, 2.8, 2.1];
let costs = [0.01, 0.008, 0.005, 0.009, 0.012];

window.location.hash = encode(sizes, Int16Array) + ";" + encode(times) + ";" + encode(costs)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].