MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Benchmark

Class Benchmark

tensorflow/core/platform/test_benchmark.h:82–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82class Benchmark {
83 public:
84 Benchmark(const char* name, void (*fn)(int));
85 Benchmark(const char* name, void (*fn)(int, int));
86 Benchmark(const char* name, void (*fn)(int, int, int));
87
88 Benchmark* Arg(int x);
89 Benchmark* ArgPair(int x, int y);
90 Benchmark* Range(int lo, int hi);
91 Benchmark* RangePair(int lo1, int hi1, int lo2, int hi2);
92 static void Run(const char* pattern);
93
94 private:
95 string name_;
96 int num_args_;
97 std::vector<std::pair<int, int> > args_;
98 void (*fn0_)(int) = nullptr;
99 void (*fn1_)(int, int) = nullptr;
100 void (*fn2_)(int, int, int) = nullptr;
101
102 void Register();
103 void Run(int arg1, int arg2, int* run_count, double* run_seconds);
104 void RunWithFixedIters(int arg1, int arg2, int* run_count, double* run_seconds);
105};
106#endif
107
108void RunBenchmarks();

Callers 15

BM_LargeTensorWriteFunction · 0.50
ConcatHelperFunction · 0.50
BM_ManyConsts_ParallelFunction · 0.50
BM_ManyConsts_SequentialFunction · 0.50
BM_SendFunction · 0.50
BM_RecvFunction · 0.50
BM_SDCAFunction · 0.50
BM_SDCA_LARGE_DENSEFunction · 0.50
BM_SDCA_LARGE_SPARSEFunction · 0.50
BM_MulChainFunction · 0.50
split_v_op_test.ccFile · 0.50

Calls

no outgoing calls

Tested by 15

BM_LargeTensorWriteFunction · 0.40
ConcatHelperFunction · 0.40
BM_ManyConsts_ParallelFunction · 0.40
BM_ManyConsts_SequentialFunction · 0.40
BM_SendFunction · 0.40
BM_RecvFunction · 0.40
BM_SDCAFunction · 0.40
BM_SDCA_LARGE_DENSEFunction · 0.40
BM_SDCA_LARGE_SPARSEFunction · 0.40
BM_MulChainFunction · 0.40
SparseConcatHelperFunction · 0.40