diff options
author | Ilnur Khuziev <ilnur.khuziev@yandex.ru> | 2022-02-10 16:46:14 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:14 +0300 |
commit | 60040c91ffe701a84689b2c6310ff845e65cff42 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/testing/benchmark | |
parent | 736dcd8ca259457a136f2f9f9168c44643914323 (diff) | |
download | ydb-60040c91ffe701a84689b2c6310ff845e65cff42.tar.gz |
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/benchmark')
-rw-r--r-- | library/cpp/testing/benchmark/bench.cpp | 20 | ||||
-rw-r--r-- | library/cpp/testing/benchmark/examples/main.cpp | 2 | ||||
-rw-r--r-- | library/cpp/testing/benchmark/examples/metrics/main.py | 2 | ||||
-rw-r--r-- | library/cpp/testing/benchmark/examples/metrics/ya.make | 2 | ||||
-rw-r--r-- | library/cpp/testing/benchmark/main/main.cpp | 2 | ||||
-rw-r--r-- | library/cpp/testing/benchmark/main/ya.make | 2 | ||||
-rw-r--r-- | library/cpp/testing/benchmark/ya.make | 4 |
7 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/testing/benchmark/bench.cpp b/library/cpp/testing/benchmark/bench.cpp index f8cb2c01f9..08d8708005 100644 --- a/library/cpp/testing/benchmark/bench.cpp +++ b/library/cpp/testing/benchmark/bench.cpp @@ -3,10 +3,10 @@ #include <contrib/libs/re2/re2/re2.h> #include <library/cpp/colorizer/output.h> -#include <library/cpp/getopt/small/last_getopt.h> +#include <library/cpp/getopt/small/last_getopt.h> #include <library/cpp/json/json_value.h> #include <library/cpp/linear_regression/linear_regression.h> -#include <library/cpp/threading/poor_man_openmp/thread_helper.h> +#include <library/cpp/threading/poor_man_openmp/thread_helper.h> #include <util/system/hp_timer.h> #include <util/system/info.h> @@ -22,7 +22,7 @@ #include <util/generic/maybe.h> #include <util/generic/strbuf.h> #include <util/generic/intrlist.h> -#include <util/stream/format.h> +#include <util/stream/format.h> #include <util/system/yield.h> using re2::RE2; @@ -128,11 +128,11 @@ namespace { } TString hr; - if (t > 10 * 1000) { - hr = " (" + ToString(HumanReadableSize(t, ESizeFormat::SF_QUANTITY)) + ")"; - } - - return ToString(t) + hr + " cycles"; + if (t > 10 * 1000) { + hr = " (" + ToString(HumanReadableSize(t, ESizeFormat::SF_QUANTITY)) + ")"; + } + + return ToString(t) + hr + " cycles"; } const ui64 N = GetCycleCount(); @@ -312,7 +312,7 @@ namespace { class TCSVReporter: public IReporter { public: TCSVReporter() { - Cout << "Name\tSamples\tIterations\tRun_time\tPer_iteration_sec\tPer_iteration_cycles" << Endl; + Cout << "Name\tSamples\tIterations\tRun_time\tPer_iteration_sec\tPer_iteration_cycles" << Endl; } ~TCSVReporter() override { @@ -469,7 +469,7 @@ void Out<TResult>(IOutputStream& out, const TResult& r) { out << "----------- " << LightRed() << r.TestName << Old() << " ---------------" << Endl << " samples: " << White() << r.Samples << Old() << Endl << " iterations: " << White() << r.Iterations << Old() << Endl - << " iterations hr: " << White() << HumanReadableSize(r.Iterations, SF_QUANTITY) << Old() << Endl + << " iterations hr: " << White() << HumanReadableSize(r.Iterations, SF_QUANTITY) << Old() << Endl << " run time: " << White() << r.RunTime << Old() << Endl; if (r.CyclesPerIteration) { diff --git a/library/cpp/testing/benchmark/examples/main.cpp b/library/cpp/testing/benchmark/examples/main.cpp index 03cb856b85..ddd8b05ffc 100644 --- a/library/cpp/testing/benchmark/examples/main.cpp +++ b/library/cpp/testing/benchmark/examples/main.cpp @@ -1,4 +1,4 @@ -#include <library/cpp/testing/benchmark/bench.h> +#include <library/cpp/testing/benchmark/bench.h> #include <util/generic/xrange.h> #include <util/generic/algorithm.h> diff --git a/library/cpp/testing/benchmark/examples/metrics/main.py b/library/cpp/testing/benchmark/examples/metrics/main.py index 11ab1c2cd1..8f9d9d06ae 100644 --- a/library/cpp/testing/benchmark/examples/metrics/main.py +++ b/library/cpp/testing/benchmark/examples/metrics/main.py @@ -3,5 +3,5 @@ import yatest.common as yc def test_export_metrics(metrics): metrics.set_benchmark(yc.execute_benchmark( - 'library/cpp/testing/benchmark/examples/examples', + 'library/cpp/testing/benchmark/examples/examples', threads=8)) diff --git a/library/cpp/testing/benchmark/examples/metrics/ya.make b/library/cpp/testing/benchmark/examples/metrics/ya.make index d6767e9c33..a9dbdca9fa 100644 --- a/library/cpp/testing/benchmark/examples/metrics/ya.make +++ b/library/cpp/testing/benchmark/examples/metrics/ya.make @@ -15,6 +15,6 @@ TAG( TEST_SRCS(main.py) -DEPENDS(library/cpp/testing/benchmark/examples) +DEPENDS(library/cpp/testing/benchmark/examples) END() diff --git a/library/cpp/testing/benchmark/main/main.cpp b/library/cpp/testing/benchmark/main/main.cpp index 264a1de8e5..aabcb89c43 100644 --- a/library/cpp/testing/benchmark/main/main.cpp +++ b/library/cpp/testing/benchmark/main/main.cpp @@ -1,4 +1,4 @@ -#include <library/cpp/testing/benchmark/bench.h> +#include <library/cpp/testing/benchmark/bench.h> #include <util/generic/yexception.h> #include <util/stream/output.h> diff --git a/library/cpp/testing/benchmark/main/ya.make b/library/cpp/testing/benchmark/main/ya.make index 8ae7e336bd..d00cdcf9fc 100644 --- a/library/cpp/testing/benchmark/main/ya.make +++ b/library/cpp/testing/benchmark/main/ya.make @@ -10,7 +10,7 @@ SRCS( ) PEERDIR( - library/cpp/testing/benchmark + library/cpp/testing/benchmark ) END() diff --git a/library/cpp/testing/benchmark/ya.make b/library/cpp/testing/benchmark/ya.make index 1a2d32c4cd..f42be80698 100644 --- a/library/cpp/testing/benchmark/ya.make +++ b/library/cpp/testing/benchmark/ya.make @@ -13,10 +13,10 @@ SRCS( PEERDIR( contrib/libs/re2 library/cpp/colorizer - library/cpp/getopt/small + library/cpp/getopt/small library/cpp/json library/cpp/linear_regression - library/cpp/threading/poor_man_openmp + library/cpp/threading/poor_man_openmp ) END() |