Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
dst
 
 
src
 
 
 
 
 
 
 
 
 
 

README.md

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)

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.