Coder Social home page Coder Social logo

apfromiit / aws-lambda-power-tuning-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matteo-ronchetti/aws-lambda-power-tuning-ui

0.0 0.0 0.0 818 KB

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

License: Apache License 2.0

JavaScript 69.64% HTML 26.91% SCSS 3.45%

aws-lambda-power-tuning-ui's Introduction

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

Then run

npm start

to build and serve at localhost:3000.

URL 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)

Contributing

# Lint the code
npm run lint

# Build the website
npm run build

# Serve the built-website in a standalone server on port 4000
npm run serve

aws-lambda-power-tuning-ui's People

Contributors

uglow avatar matteo-ronchetti avatar alexcasalboni avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.