delivery_man_benchmark_with_fixture.cpp
Go to the documentation of this file.
00001 #include <hayai/hayai.hpp>
00002 
00003 #include "delivery_man.hpp"
00004 
00005 class SlowDeliveryManFixture
00006     :   public ::hayai::Fixture
00007 {
00008 public:
00009     virtual void SetUp()
00010     {
00011         this->SlowDeliveryMan = new DeliveryMan(1);
00012     }
00013 
00014     virtual void TearDown()
00015     {
00016         delete this->SlowDeliveryMan;
00017     }
00018 
00019     DeliveryMan* SlowDeliveryMan;
00020 };
00021 
00022 BENCHMARK_F(SlowDeliveryManFixture, DeliverPackage, 10, 100)
00023 {
00024     SlowDeliveryMan->DeliverPackage(10);
00025 }


hayai
Author(s): Nick Bruun
autogenerated on Thu Jun 6 2019 18:13:43