greening-digital / greenspeed Goto Github PK
View Code? Open in Web Editor NEWA way to easily carry out sitespeed checks, with sustainable web calculations
License: Apache License 2.0
A way to easily carry out sitespeed checks, with sustainable web calculations
License: Apache License 2.0
We want to make it possible to run a sitespeed check as a service, but we want to make it scale to zero using as open and green a stack as possible.
To begin with, we're using google cloud run, because:
To begin with, greenspeed needs to run as a service where it will accept a POST with data sent along the lines of this handler.
https://cloud.google.com/run/docs/tutorials/pubsub#run_pubsub_handler-nodejs
If this is a valid url, we pass the url to sitespeed with the following parameters:
./bin/sitespeed.js https://PROVIDED_URL --headless -n 1 --sustainable.enable --sustainable.co2PerDomain --sustainable.dirtiestResources --sustainable.pageViews 1000000 --
### Acceptance criteria
We can close this issue when we have a HTTP service that:
I've found this format useful, and our future selves will be thankful.
This is open source, so travisCI would be fine, but we are already using github actions on the main GD site, so ca can refer to that for setting it up.
Travis uses GCP under the hood, and Github probably uses MS's cloud under the hood, or eventually will.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.