Create a benchmark for ProducerConsumerQueue
Create a benchmark for ProducerConsumerQueue

Summary: This is a basic benchmark harness for testing ProducerConsumerQueue, which tests a single producer/consumer pair with and without CPU affinity set.  The change to ProducerConsumerQueue.h (not for committing) tests the effect of cache-aligning the read and write indices to reduce false sharing.

Test Plan: Run the benchmark with the cache alignment (un)commented.

Reviewed By: rituraj@fb.com

FB internal diff: D665948


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