olivierli / chrome_safari_power Goto Github PK
View Code? Open in Web Editor NEWUse this to drive a bunch of browsers and profile/measure the results!
License: MIT License
Use this to drive a bunch of browsers and profile/measure the results!
License: MIT License
Right now it depends on chrome closing itself with a sudden abort inserted in the code.
It should use the driver scripts to run for a specific amount of time.
It's not perfect because the user can always end the session manually but you'd at least want to verify that the app creates a session by default.
This should be done from the command line. Probably should be extracted in a function to be used from compare_chromes.sh?
Or more probably these two should be joined.
I've found it creating a substantial number of idle wake-ups.
It tends to be higher than other readings and not mean much because it includes startup.
Maybe just kill and not kill -9?
Otherwise this can keep youtube from starting the video.
There should be a small standalone program that can be run next to the browser and logs the battery discharge.
This allows calculating how long the full battery would last if executing the scenario over and over.
If we only care about Chrome we could find a way to leverage the devtools protocol to query Power.Mac.BatteryDischarge.
If we want to compare to Safari it would be best to write a quick objc/swift program to do it. Optimally it would use something like Grand Central Dispatch to setup the sample collection to minimize the impact on the system.
The timer getting aggressively slacked would explain why measuring idle returns larger values than zero window safari!!
Durning the first 3% of discharge the number are quite unreliable. We think that's caused by OS policies to no have too many charge discharge cycles but not look like it's "not listening" to the user.
Needed are pandas and matplotlib
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.