[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    [CMake] Ninja: files per second
From:       Peter_Kümmel <syntheticpp () gmx ! net>
Date:       2012-07-28 8:57:44
Message-ID: 5013A988.7080805 () gmx ! net
[Download RAW message or body]

I've added a nice feature to ninja which is now upstream:

By setting the environment variable NINJA_STATUS

bash:
         export NINJA_STATUS="[%s/%t %o(%c)/s] "

cmd.exe (with space at the end):

         set NINJA_STATUS=[%s/%t %o(%c)/s]

Ninja prints the overall processed files per second and the
the current rate of files per second (averaged over the last -j files).

For instance compiling cmake I get (-DCMAKE_BUILD_TYPE=Release):
- Linux   gcc 4.6: [397/397 6.6(12)/s]
- Windows gcc 4.7: [438/438 5.9(11)/s]
- Mac     gcc 4.2: [462/462 4.9(3)/s]

See also
https://github.com/martine/ninja/blob/master/doc/manual.asciidoc#environment-variables

Happy benchmarking,
Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic