MCPcopy Create free account
hub / github.com/catboost/catboost / FillConverted

Function FillConverted

library/cpp/float16/benchmarks/convert_benchmarks.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static void FillConverted(benchmark::State& state) {
27 // Perform setup here
28 std::vector<TFloat16> data(VectorSize);
29 for (auto _ : state) {
30 // This code gets timed
31 std::fill(data.data(), data.data() + data.size(), TFloat16(0));
32 Y_DO_NOT_OPTIMIZE_AWAY(data);
33 }
34}
35
36static void FillMemset(benchmark::State& state) {
37 // Perform setup here

Callers

nothing calls this directly

Calls 4

TFloat16Class · 0.85
fillFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected