Fixing static initilize fiasco in Benchmark.cpp
Fixing static initilize fiasco in Benchmark.cpp

Summary:
Benchmark.cpp code is dependent on initialization order, which leads
to benchmarks not running. The root cause is that on some linkers the code which
adds benchmarks to the benchmarks vector is run before the vector initialization.

The original bug report: https://github.com/facebook/folly/issues/18
See: http://www.parashift.com/c++-faq-lite/static-init-order.html

Test Plan: run benchmark_test and compare result with master output

Reviewed By: andrei.alexandrescu@fb.com, njormrod@fb.com

Subscribers: trunkagent, sdwilsh, folly-diffs@

FB internal diff: D1710588

Signature: t1:1710588:1417468175:fd2705a573cef5c4ff020b60c6aec3d83bcdbbab

shaobz/folly,bsampath/folly,clearlinux/folly,SammyK/folly,constantine001/folly,sakishum/folly,bowlofstew/folly,reddit/folly,ykarlsbrun/folly,raphaelamorim/folly,facebook/folly,bobegir/folly,cppfool/folly,fw1121/folly,project-zerus/folly,fw1121/folly,stonegithubs/folly,colemancda/folly,sonnyhu/folly,wildinto/folly,lifei/folly,renyinew/folly,upsoft/folly,shaobz/folly,facebook/folly,loversInJapan/folly,gavioto/folly,gaoyingie/folly,Hincoin/folly,cole14/folly,cole14/folly,sonnyhu/folly,brunomorishita/folly,yangjin-unique/folly,fw1121/folly,sonnyhu/folly,loverszhaokai/folly,bikong2/folly,hongliangzhao/folly,KSreeHarsha/folly,colemancda/folly,SeanRBurton/folly,chjp2046/folly,cppfool/folly,doctaweeks/folly,clearlinux/folly,SammyK/folly,brunomorishita/folly,PPC64/folly,nickhen/folly,mqeizi/folly,Eagle-X/folly,charsyam/folly,xzmagic/folly,alexst07/folly,doctaweeks/folly,wildinto/folly,rklabs/folly,fw1121/folly,sonnyhu/folly,wildinto/folly,tempbottle/folly,bikong2/folly,facebook/folly,stonegithubs/folly,CJstar/folly,yangjin-unique/folly,gaoyingie/folly,shaobz/folly,kernelim/folly,PPC64/folly,CJstar/folly,brunomorishita/folly,kernelim/folly,Orvid/folly,bowlofstew/folly,loversInJapan/folly,PoisonBOx/folly,nickhen/folly,lifei/folly,loversInJapan/folly,SeanRBurton/folly,PPC64/folly,xzmagic/folly,brunomorishita/folly,sakishum/folly,romange/folly,xzmagic/folly,cole14/folly,loverszhaokai/folly,PoisonBOx/folly,nickhen/folly,zhiweicai/folly,leolujuyi/folly,upsoft/folly,raphaelamorim/folly,project-zerus/folly,juniway/folly,tempbottle/folly,Eagle-X/folly,juniway/folly,tempbottle/folly,zhiweicai/folly,tempbottle/folly,KSreeHarsha/folly,clearlinux/folly,mqeizi/folly,loversInJapan/folly,sonnyhu/folly,constantine001/folly,arg0/folly,zhiweicai/folly,kernelim/folly,CJstar/folly,brunomorishita/folly,guker/folly,raphaelamorim/folly,renyinew/folly,tomhughes/folly,lifei/folly,alexst07/folly,CJstar/folly,chjp2046/folly,bsampath/folly,cppfool/folly,yangjin-unique/folly,wildinto/folly,project-zerus/folly,fw1121/folly,Hincoin/folly,colemancda/folly,cole14/folly,shaobz/folly,xzmagic/folly,stonegithubs/folly,wildinto/folly,Eagle-X/folly,floxard/folly,bobegir/folly,gaoyingie/folly,floxard/folly,reddit/folly,kernelim/folly,upsoft/folly,rklabs/folly,tomhughes/folly,juniway/folly,rklabs/folly,tomhughes/folly,leolujuyi/folly,guker/folly,bowlofstew/folly,Hincoin/folly,hongliangzhao/folly,ykarlsbrun/folly,rklabs/folly,leolujuyi/folly,SeanRBurton/folly,clearlylin/folly,guker/folly,PoisonBOx/folly,romange/folly,sakishum/folly,bobegir/folly,alexst07/folly,leolujuyi/folly,hongliangzhao/folly,clearlylin/folly,arg0/folly,stonegithubs/folly,doctaweeks/folly,loversInJapan/folly,theiver9827/folly,clearlylin/folly,CJstar/folly,mqeizi/folly,charsyam/folly,juniway/folly,zhiweicai/folly,cppfool/folly,facebook/folly,doctaweeks/folly,bsampath/folly,ykarlsbrun/folly,renyinew/folly,constantine001/folly,bsampath/folly,theiver9827/folly,charsyam/folly,SammyK/folly,reddit/folly,guker/folly,gaoyingie/folly,romange/folly,bikong2/folly,facebook/folly,clearlylin/folly,hongliangzhao/folly,chjp2046/folly,clearlylin/folly,clearlinux/folly,gavioto/folly,bobegir/folly,project-zerus/folly,KSreeHarsha/folly,PoisonBOx/folly,charsyam/folly,gavioto/folly,romange/folly,Hincoin/folly,raphaelamorim/folly,bobegir/folly,bikong2/folly,theiver9827/folly,raphaelamorim/folly,gavioto/folly,nickhen/folly,arg0/folly,nickhen/folly,tempbottle/folly,Hincoin/folly,alexst07/folly,mqeizi/folly,arg0/folly,PPC64/folly,clearlinux/folly,tomhughes/folly,loverszhaokai/folly,shaobz/folly,project-zerus/folly,SeanRBurton/folly,theiver9827/folly,loverszhaokai/folly,Orvid/folly,juniway/folly,floxard/folly,cole14/folly,sakishum/folly,bowlofstew/folly,xzmagic/folly,gavioto/folly,yangjin-unique/folly,doctaweeks/folly,loverszhaokai/folly,lifei/folly,Eagle-X/folly,SammyK/folly,rklabs/folly,yangjin-unique/folly,KSreeHarsha/folly,cppfool/folly,constantine001/folly,hongliangzhao/folly,KSreeHarsha/folly,colemancda/folly,reddit/folly,Orvid/folly,bowlofstew/folly,tomhughes/folly,romange/folly,arg0/folly,chjp2046/folly,SammyK/folly,bsampath/folly,Orvid/folly,reddit/folly,leolujuyi/folly,gaoyingie/folly,renyinew/folly,Eagle-X/folly,floxard/folly,ykarlsbrun/folly,bikong2/folly,zhiweicai/folly,chjp2046/folly,guker/folly,SeanRBurton/folly,alexst07/folly,renyinew/folly,theiver9827/folly,mqeizi/folly,colemancda/folly,Orvid/folly,constantine001/folly,sakishum/folly,PoisonBOx/folly,PPC64/folly,floxard/folly,upsoft/folly,upsoft/folly,lifei/folly,ykarlsbrun/folly,kernelim/folly,stonegithubs/folly