summaryrefslogtreecommitdiffstats
path: root/src/hash_collision_bench.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add 'using namespace std;' to all cc files to prepare for removing it from ↵Michael Jones2020-09-301-1/+2
| | | | header files
* Add <stdlib.h> includes for clang++/libc++ on UbuntuDan Willemsen2016-04-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | There are a number of stdlib.h uses in these files without including stdlib.h: hash_collision_bench.cc: rand, RAND_MAX, srand manifest_parser_perftest.cc: system, exit ninja_test.cc: EXIT_SUCCESS, EXIT_FAILURE test.cc: getenv, mkdtemp, system This works on a Ubuntu g++/libstdc++ build, as the <algorithm> header pulls in stdlib.h, and on a OSX clang++/libc++ build the <map> and <string> headers pull in stdlib.h. But a Ubuntu clang++/libc++ build does not pull in stdlib.h with any of these other headers. $ apt-get install clang-3.6 libc++-dev $ CXX=clang++-3.6 CFLAGS=-stdlib=libc++ LDFLAGS=-stdlib=libc++ \ ./configure.py $ ninja ninja_test hash_collision_bench manifest_parser_perftest This was originally discovered using the host toolchain provided with Android, but the Ubuntu version is much easier to reproduce.
* Rename num_collisions to collision_count.Nico Weber2014-12-041-3/+3
| | | | | All other counting variables are called foo_count, not num_foos. No behavior change.
* windows: fix integer truncation issues for helper binariesEvan Martin2012-08-101-2/+7
| | | | | Disable the size_t truncation warning. (Note that this leaves on the other truncation-related warnings, like int->char.)
* add copyright headerEvan Martin2012-06-191-0/+14
|
* Add a hash collision benchmark.Nico Weber2012-06-151-0/+43