aboutsummaryrefslogtreecommitdiffstats
path: root/util/random/benchmark/prng
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/random/benchmark/prng
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/random/benchmark/prng')
-rw-r--r--util/random/benchmark/prng/main.cpp42
-rw-r--r--util/random/benchmark/prng/metrics/main.py8
-rw-r--r--util/random/benchmark/prng/metrics/ya.make26
-rw-r--r--util/random/benchmark/prng/ya.make20
4 files changed, 48 insertions, 48 deletions
diff --git a/util/random/benchmark/prng/main.cpp b/util/random/benchmark/prng/main.cpp
index 2c6279ff71..4c3fc3872e 100644
--- a/util/random/benchmark/prng/main.cpp
+++ b/util/random/benchmark/prng/main.cpp
@@ -1,12 +1,12 @@
#include <library/cpp/testing/benchmark/bench.h>
-
-#include <util/random/entropy.h>
-#include <util/random/fast.h>
+
+#include <util/random/entropy.h>
+#include <util/random/fast.h>
#include <util/random/normal.h>
-#include <util/random/mersenne.h>
-#include <util/system/compiler.h>
+#include <util/random/mersenne.h>
+#include <util/system/compiler.h>
#include <util/generic/xrange.h>
-
+
#include <random>
// double part
@@ -15,36 +15,36 @@ Y_CPU_BENCHMARK(Mersenne32_Double, p) {
for (auto i : xrange<size_t>(0, p.Iterations())) {
(void)i;
- Y_DO_NOT_OPTIMIZE_AWAY(rng.GenRandReal1());
- }
-}
-
+ Y_DO_NOT_OPTIMIZE_AWAY(rng.GenRandReal1());
+ }
+}
+
Y_CPU_BENCHMARK(Mersenne64_Double, p) {
TMersenne<ui64> rng(Seed());
for (auto i : xrange<size_t>(0, p.Iterations())) {
(void)i;
- Y_DO_NOT_OPTIMIZE_AWAY(rng.GenRandReal1());
- }
-}
-
+ Y_DO_NOT_OPTIMIZE_AWAY(rng.GenRandReal1());
+ }
+}
+
Y_CPU_BENCHMARK(Fast32_Double, p) {
TFastRng<ui32> rng(Seed());
for (auto i : xrange<size_t>(0, p.Iterations())) {
(void)i;
- Y_DO_NOT_OPTIMIZE_AWAY(rng.GenRandReal1());
- }
-}
-
+ Y_DO_NOT_OPTIMIZE_AWAY(rng.GenRandReal1());
+ }
+}
+
Y_CPU_BENCHMARK(Fast64_Double, p) {
TFastRng<ui64> rng(Seed());
for (auto i : xrange<size_t>(0, p.Iterations())) {
(void)i;
- Y_DO_NOT_OPTIMIZE_AWAY(rng.GenRandReal1());
- }
-}
+ Y_DO_NOT_OPTIMIZE_AWAY(rng.GenRandReal1());
+ }
+}
// integer part
Y_CPU_BENCHMARK(mt19937_32, p) {
diff --git a/util/random/benchmark/prng/metrics/main.py b/util/random/benchmark/prng/metrics/main.py
index 15b371fe75..7b8174a647 100644
--- a/util/random/benchmark/prng/metrics/main.py
+++ b/util/random/benchmark/prng/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/random/benchmark/prng/prng', threads=8))
diff --git a/util/random/benchmark/prng/metrics/ya.make b/util/random/benchmark/prng/metrics/ya.make
index 1f56aac0bd..45f0ab0923 100644
--- a/util/random/benchmark/prng/metrics/ya.make
+++ b/util/random/benchmark/prng/metrics/ya.make
@@ -1,21 +1,21 @@
-OWNER(
- yazevnul
+OWNER(
+ yazevnul
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/random/benchmark/prng)
-
-END()
+
+END()
diff --git a/util/random/benchmark/prng/ya.make b/util/random/benchmark/prng/ya.make
index 976977014f..a475d0c67f 100644
--- a/util/random/benchmark/prng/ya.make
+++ b/util/random/benchmark/prng/ya.make
@@ -1,13 +1,13 @@
-OWNER(
- yazevnul
+OWNER(
+ yazevnul
g:util
-)
+)
SUBSCRIBER(g:util-subscribers)
-
+
Y_BENCHMARK()
-
-SRCS(
- main.cpp
-)
-
-END()
+
+SRCS(
+ main.cpp
+)
+
+END()