diff options
author | Alexander Gololobov <davenger@yandex-team.com> | 2022-02-10 16:47:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:38 +0300 |
commit | fccc62e9bfdce9be2fe7e0f23479da3a5512211a (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/memory/benchmark | |
parent | 39608cdb86363c75ce55b2b9a69841c3b71f22cf (diff) | |
download | ydb-fccc62e9bfdce9be2fe7e0f23479da3a5512211a.tar.gz |
Restoring authorship annotation for Alexander Gololobov <davenger@yandex-team.com>. Commit 2 of 2.
Diffstat (limited to 'util/memory/benchmark')
-rw-r--r-- | util/memory/benchmark/pool/main.cpp | 30 | ||||
-rw-r--r-- | util/memory/benchmark/pool/metrics/main.py | 8 | ||||
-rw-r--r-- | util/memory/benchmark/pool/metrics/ya.make | 20 | ||||
-rw-r--r-- | util/memory/benchmark/pool/ya.make | 14 | ||||
-rw-r--r-- | util/memory/benchmark/ya.make | 8 |
5 files changed, 40 insertions, 40 deletions
diff --git a/util/memory/benchmark/pool/main.cpp b/util/memory/benchmark/pool/main.cpp index 91f781aab7..0b4d6c94af 100644 --- a/util/memory/benchmark/pool/main.cpp +++ b/util/memory/benchmark/pool/main.cpp @@ -1,11 +1,11 @@ #include <library/cpp/testing/benchmark/bench.h> - -#include <util/memory/pool.h> -#include <util/generic/xrange.h> -#include <util/stream/output.h> - + +#include <util/memory/pool.h> +#include <util/generic/xrange.h> +#include <util/stream/output.h> + #define BENCHMARK_POOL_ALLOC(chunkSize, allocSize, allocAlign) \ - Y_CPU_BENCHMARK(MemroyPool_chunk##chunkSize##_alloc##allocSize##_align##allocAlign, p) { \ + Y_CPU_BENCHMARK(MemroyPool_chunk##chunkSize##_alloc##allocSize##_align##allocAlign, p) { \ TMemoryPool pool(chunkSize); \ for (auto i : xrange<size_t>(0, p.Iterations())) { \ (void)i; \ @@ -15,12 +15,12 @@ Cerr << "Allocated: " << pool.MemoryAllocated() << Endl; \ Cerr << "Waste: " << pool.MemoryWaste() << Endl; \ */ \ - } - -BENCHMARK_POOL_ALLOC(4096, 1, 1) -BENCHMARK_POOL_ALLOC(4096, 2, 2) -BENCHMARK_POOL_ALLOC(4096, 3, 4) -BENCHMARK_POOL_ALLOC(4096, 7, 8) -BENCHMARK_POOL_ALLOC(4096, 17, 16) -BENCHMARK_POOL_ALLOC(4096, 40, 64) -BENCHMARK_POOL_ALLOC(4096, 77, 128) + } + +BENCHMARK_POOL_ALLOC(4096, 1, 1) +BENCHMARK_POOL_ALLOC(4096, 2, 2) +BENCHMARK_POOL_ALLOC(4096, 3, 4) +BENCHMARK_POOL_ALLOC(4096, 7, 8) +BENCHMARK_POOL_ALLOC(4096, 17, 16) +BENCHMARK_POOL_ALLOC(4096, 40, 64) +BENCHMARK_POOL_ALLOC(4096, 77, 128) diff --git a/util/memory/benchmark/pool/metrics/main.py b/util/memory/benchmark/pool/metrics/main.py index 1738ef91dc..cc17b7b888 100644 --- a/util/memory/benchmark/pool/metrics/main.py +++ b/util/memory/benchmark/pool/metrics/main.py @@ -1,5 +1,5 @@ -import yatest.common as yc - - -def test_export_metrics(metrics): +import yatest.common as yc + + +def test_export_metrics(metrics): metrics.set_benchmark(yc.execute_benchmark('util/memory/benchmark/pool/pool', threads=8)) diff --git a/util/memory/benchmark/pool/metrics/ya.make b/util/memory/benchmark/pool/metrics/ya.make index 413ab1ecb2..c671bc5c1c 100644 --- a/util/memory/benchmark/pool/metrics/ya.make +++ b/util/memory/benchmark/pool/metrics/ya.make @@ -1,18 +1,18 @@ OWNER(g:util) SUBSCRIBER(g:util-subscribers) - + PY2TEST() - + SIZE(LARGE) - -TAG( + +TAG( ya:force_sandbox - sb:intel_e5_2660v1 + sb:intel_e5_2660v1 ya:fat -) - +) + TEST_SRCS(main.py) - + DEPENDS(util/memory/benchmark/pool) - -END() + +END() diff --git a/util/memory/benchmark/pool/ya.make b/util/memory/benchmark/pool/ya.make index 1b48c71ae3..5f4f7d3f15 100644 --- a/util/memory/benchmark/pool/ya.make +++ b/util/memory/benchmark/pool/ya.make @@ -1,10 +1,10 @@ OWNER(g:util) SUBSCRIBER(g:util-subscribers) - + Y_BENCHMARK() - -SRCS( - main.cpp -) - -END() + +SRCS( + main.cpp +) + +END() diff --git a/util/memory/benchmark/ya.make b/util/memory/benchmark/ya.make index 0d6de5c96e..2259b9434e 100644 --- a/util/memory/benchmark/ya.make +++ b/util/memory/benchmark/ya.make @@ -1,7 +1,7 @@ OWNER(g:util) SUBSCRIBER(g:util-subscribers) - -RECURSE( - pool + +RECURSE( + pool pool/metrics -) +) |