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
{
{
...
@@ -1117,12 +1132,12 @@ F32 gpu_benchmark()
...
@@ -1117,12 +1132,12 @@ F32 gpu_benchmark()
F32gbps=results[results.size()/2];
F32gbps=results[results.size()/2];
LL_INFOS()<<"Memory bandwidth is "<<llformat("%.3f",gbps)<<"GB/sec according to CPU timers"<<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;
#if LL_DARWIN
#if LL_DARWIN
if(gbps>512.f)
if(gbps>512.f)
{
{
LL_WARNS()<<"Memory bandwidth is improbably high and likely incorrect; discarding result."<<LL_ENDL;
LL_WARNS("Benchmark")<<"Memory bandwidth is improbably high and likely incorrect; discarding result."<<LL_ENDL;
LL_INFOS()<<"Memory bandwidth is "<<llformat("%.3f",gbps)<<"GB/sec according to ARB_timer_query"<<LL_ENDL;
LL_INFOS("Benchmark")<<"Memory bandwidth is "<<llformat("%.3f",gbps)<<"GB/sec according to ARB_timer_query, total time "<<seconds<<" seconds"<<LL_ENDL;