Skip to content

rsonghuster/aws-lambda-power-tuning-ui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Languages

  • JavaScript 60.3%
  • HTML 35.7%
  • SCSS 4.0%