if(c>=0)// <-- ignore the first sample as it tends to be artificially slow
{
if(c>=0)// <-- ignore the first sample as it tends to be artificially slow
//store result in gigabytes per second
{
F32gb=(F32)((F64)(res*res*8*count))/(1000000000);
//store result in gigabytes per second
F32gbps=gb/time;
F32gb=(F32)((F64)(res*res*8*count))/(1000000000);
results.push_back(gbps);
F32gbps=gb/time;
}
results.push_back(gbps);
}
}
}
gBenchmarkProgram.unbind();
}
std::sort(results.begin(),results.end());
std::sort(results.begin(),results.end());
F32gbps=results[results.size()/2];
F32gbps=results[results.size()/2];
LL_INFOS("Benchmark")<<"Memory bandwidth is "<<llformat("%.3f",gbps)<<"GB/sec according to CPU timers, "<<(F32)results.size()<<" tests took "<<time_passed<<" seconds"<<LL_ENDL;
LL_INFOS("Benchmark")<<"Memory bandwidth is "<<llformat("%.3f",gbps)<<"GB/sec according to CPU timers, "<<(F32)results.size()<<" tests took "<<time_passed<<" seconds"<<LL_ENDL;
LL_INFOS("Benchmark")<<"Memory bandwidth is "<<llformat("%.3f",gbps)<<"GB/sec according to ARB_timer_query, total time "<<seconds<<" seconds"<<LL_ENDL;
LL_INFOS("Benchmark")<<"Memory bandwidth is "<<llformat("%.3f",gbps)<<"GB/sec according to ARB_timer_query, total time "<<seconds<<" seconds"<<LL_ENDL;