Commit 2321116e authored by Robert Maynard's avatar Robert Maynard

Filter Benchmarks don't time destruction of results

Previously we would also time the destruction of the results
of the filter
parent c0471ad0
......@@ -239,7 +239,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -327,7 +328,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -366,7 +368,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -392,7 +395,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -417,7 +421,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -445,7 +450,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -472,7 +478,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -515,7 +522,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -560,7 +568,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -595,7 +604,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......@@ -621,7 +631,8 @@ class BenchmarkFilters
{
Timer timer{ DeviceAdapter() };
timer.Start();
this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
auto result = this->Filter.Execute(InputDataSet, BenchmarkFilterPolicy());
(void)result;
return timer.GetElapsedTime();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment