MCPcopy Create free account
hub / github.com/Snapchat/djinni / cppTests

Method cppTests

perftest/handwritten-src/cpp/DjinniPerfBenchmarkImpl.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14int64_t DjinniPerfBenchmarkImpl::cppTests() {
15 auto t1 = std::chrono::high_resolution_clock::now();
16 constexpr int kBufSize = 256;
17 char buf[kBufSize];
18 char buf2[kBufSize];
19 memcpy(buf, buf2, kBufSize);
20 auto t2 = std::chrono::high_resolution_clock::now();
21 int64_t ns = std::chrono::duration_cast<std::chrono::nanoseconds>(t2 - t1).count();
22 return ns;
23}
24
25void DjinniPerfBenchmarkImpl::baseline() {}
26

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected