mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
a44285c32d
This speeds up `./mach build --dev` followed by `./mach build-cef` by 25%. When rust-lang/cargo#497 is fixed, this speedup will increase dramatically. Source-Repo: https://github.com/servo/servo Source-Revision: d6263c9b6e969fde4c644034e684a39d68667ad9 |
||
---|---|---|
.. | ||
PowerMeasure.py | ||
README.md |
The power and performance measurement for Servo parallel browser
This script uses PowerMetrics to measure power usage of Servo on OS X
Running
cd servo/tests/power
sudo python PowerMeasure.py
You can define the maximum number of threads in layout level, rendering by cpu, benchmarks and output directory with these command line arguments:
-b BENCHMARK, --benchmark BENCHMARK
sets the benchmark, for example '-B "perf-rainbow.html"'-c CPU, --CPU CPU
renders with CPU instead of GPU-l LAYOUTTHREADS, --LayoutThreads LAYOUTTHREADS
sets the maximum number of threads for layout, for example " -L 5"-o OUTPUT, --Output OUTPUT
specifyes the output directory
Example
This command will measure power and performance for 1 to 5 threads in layout with CPU rendering when we are running the about-mozilla.html benchmark
sudo python PowerMeasure.py -L 5 -c cpu -b "/Desktop/servo/src/test/html/about-mozilla.html" -o /Desktop/Results/