aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/colorizer
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.com>2025-02-10 23:07:18 +0300
committertobo <tobo@yandex-team.com>2025-02-10 23:57:24 +0300
commitcc4962f760e1d454f0ce1dbe54ed92f9bf7eaf6a (patch)
tree139953c2ae965e5ef333734c80a1738d6ab43604 /library/cpp/colorizer
parent1bc386a79e88f4b16c5f3016a36c29564e506bfc (diff)
downloadydb-cc4962f760e1d454f0ce1dbe54ed92f9bf7eaf6a.tar.gz
[util] GmTimeR: speedup a bit
perf before ``` ------------------------------------------------------------------------------- Benchmark Time CPU Iterations ------------------------------------------------------------------------------- BM_GmTimeR 3.61 ns 3.61 ns 194952699 BM_GmTimeRRandom/last_hour 5.04 ns 5.04 ns 136121940 BM_GmTimeRRandom/last_day 5.03 ns 5.03 ns 139883239 BM_GmTimeRRandom/last_month 8.03 ns 8.03 ns 87839823 BM_GmTimeRRandom/last_year 14.9 ns 14.9 ns 46401773 BM_GmTimeRRandom/last_decade 16.9 ns 16.9 ns 41439312 BM_GmTimeRRandom/last_half_centry 16.9 ns 16.9 ns 41225553 ``` perf after ``` ------------------------------------------------------------------------------- Benchmark Time CPU Iterations ------------------------------------------------------------------------------- BM_GmTimeR 3.27 ns 3.27 ns 215390890 BM_GmTimeRRandom/last_hour 4.52 ns 4.52 ns 154869504 BM_GmTimeRRandom/last_day 4.53 ns 4.53 ns 155409964 BM_GmTimeRRandom/last_month 7.24 ns 7.24 ns 96972146 BM_GmTimeRRandom/last_year 13.5 ns 13.5 ns 51957829 BM_GmTimeRRandom/last_decade 15.5 ns 15.5 ns 45192135 BM_GmTimeRRandom/last_half_centry 15.4 ns 15.4 ns 45526906 ``` commit_hash:ac9db56d93a25c3a3018cfbb6bc5800da3d001ee
Diffstat (limited to 'library/cpp/colorizer')
0 files changed, 0 insertions, 0 deletions