diff options
| author | vvvv <[email protected]> | 2025-10-09 12:25:18 +0300 |
|---|---|---|
| committer | vvvv <[email protected]> | 2025-10-09 12:57:17 +0300 |
| commit | cb77d014972b2cdb27d2e6d979fc3a2772b27ad4 (patch) | |
| tree | 7f3bcd8ce71c6bd0f3ccc11e31b9f665475b819e /yql/essentials/minikql/perf/mprefetch/mprefetch.cpp | |
| parent | d58a8990d353b051c27e1069141117fdfde64358 (diff) | |
YQL-20086 minikql
commit_hash:e96f7390db5fcbe7e9f64f898141a263ad522daa
Diffstat (limited to 'yql/essentials/minikql/perf/mprefetch/mprefetch.cpp')
| -rw-r--r-- | yql/essentials/minikql/perf/mprefetch/mprefetch.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yql/essentials/minikql/perf/mprefetch/mprefetch.cpp b/yql/essentials/minikql/perf/mprefetch/mprefetch.cpp index 9ba9cbc3df4..d7ed2a98493 100644 --- a/yql/essentials/minikql/perf/mprefetch/mprefetch.cpp +++ b/yql/essentials/minikql/perf/mprefetch/mprefetch.cpp @@ -39,7 +39,7 @@ int main(int argc, char** argv) { ui32 index = 0; if (nPrefetch == 0) { for (ui32 i = 0; i < nIters; ++i) { - data[v[index++]]+=1; + data[v[index++]] += 1; if (index == nRows) { index = 0; } @@ -56,7 +56,7 @@ int main(int argc, char** argv) { queueBegin = 0; } - data[prevJ]+=1; + data[prevJ] += 1; for (ui32 j = 0; j < nSpin; ++j) { ++tmp; @@ -87,7 +87,7 @@ int main(int argc, char** argv) { } auto duration = timer.Get(); - durations.push_back(1e-6*duration.MicroSeconds()); + durations.push_back(1e-6 * duration.MicroSeconds()); } // remove 1/3 of worst measurements @@ -102,7 +102,7 @@ int main(int argc, char** argv) { double avgDuration = sumDurations / nRepeats; double dispDuration = sqrt(sumDurationsQ / nRepeats - avgDuration * avgDuration); - Cerr << "Elapsed: " << avgDuration << ", noise: " << 100*dispDuration/avgDuration << "%\n"; + Cerr << "Elapsed: " << avgDuration << ", noise: " << 100 * dispDuration / avgDuration << "%\n"; Cerr << "Speed: " << 1e-6 * (ui64(nIters) / avgDuration) << " M iters/sec\n"; return 0; } |
