Showing posts with label testing. Show all posts
Showing posts with label testing. Show all posts

Tuesday, December 20, 2011

Page Speed

Page Speed is an open-source project started at Google to help developers optimize their web pages by applying web performance best practices. Page Speed started as an open-source browser extension, and is now deployed in third-party products such as Webpagetest.orgShow Slow and Google Webmaster Tools.
So if you want to try Page Speed go: http://code.google.com/intl/pl/speed/page-speed/

Thursday, September 22, 2011

Testing tools

I found another great testing tool:
http://code.google.com/p/googlemock/
It allows me to mock-up entire class.

The other one, previously used by me is:
http://code.google.com/p/googletest/
Which is just a unit test framework.
The team of this two can really make the life of developer much simpler as it allows to test code functionality every time he mess a lot. Bugs cannot feel safe from now.

And if we are using unit tests and some more generic system tests at some points we probably start to care about the test coverage. We want to know which functionalities are tested and what is percentage coverage of source by tests. In C++ we can accomplish this by:
http://gcc.gnu.org/onlinedocs/gcc/Gcov.html
To display the results in human-friendly format we can use:
http://ltp.sourceforge.net/coverage/lcov.php

Wednesday, September 21, 2011

C++ Profiling

I am writing program for ai-contest right now and noticed that for some reasons and initial conditions my program is working slower and slower. I don't want to change algorithms or design as it is quite well written. So I decided to find bottlenecks of my bot. Here is how I started.

List of C++ profilers:
Both of them are open source. I especially liked the second one.

To be continued.