mirror of
https://github.com/reactos/ninja.git
synced 2025-01-23 11:44:44 +00:00
performance testing note
This commit is contained in:
parent
8aae49d6f7
commit
b922101633
9
HACKING
9
HACKING
@ -9,6 +9,15 @@ Test-driven development:
|
||||
Remember to build "all" before committing to verify the other source
|
||||
still works!
|
||||
|
||||
Testing performance impact of changes:
|
||||
If you have a Chrome build handy, it's a good test case.
|
||||
Otherwise, https://github.com/martine/ninja/downloads has a copy of
|
||||
the Chrome build files (and depfiles). You can untar that, then run
|
||||
"ninja chrome". I often do something like:
|
||||
(for i in `seq 5`; do time -p ninja chrome) 2>&1 | grep real > old
|
||||
(for i in `seq 5`; do time -p ninja-new chrome) 2>&1 | grep real > new
|
||||
and then compare those two lists of timings either by eye or with R.
|
||||
|
||||
Coding guidelines:
|
||||
- Function name are camelcase.
|
||||
- Member methods are camelcase, expect for trivial getters which are
|
||||
|
Loading…
x
Reference in New Issue
Block a user