MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / run_benchmark

Function run_benchmark

compute/perf/perf.py:115–203  ·  view source on GitHub ↗
(name, sizes, vs=[])

Source from the content-addressed store, hash-verified

113 pylab.title(self.name)
114
115def run_benchmark(name, sizes, vs=[]):
116 report = Report(name)
117
118 for size in sizes:
119 time = run_perf_process(name, size)
120
121 report.add_sample("compute", size, time)
122
123 competitors = {
124 "thrust" : [
125 "accumulate",
126 "count",
127 "exclusive_scan",
128 "find",
129 "inner_product",
130 "merge",
131 "partial_sum",
132 "partition",
133 "reduce_by_key",
134 "reverse",
135 "reverse_copy",
136 "rotate",
137 "saxpy",
138 "sort",
139 "unique"
140 ],
141 "bolt" : [
142 "accumulate",
143 "count",
144 "exclusive_scan",
145 "fill",
146 "inner_product",
147 "max_element",
148 "merge",
149 "partial_sum",
150 "reduce_by_key",
151 "saxpy",
152 "sort"
153 ],
154 "tbb": [
155 "accumulate",
156 "merge",
157 "sort"
158 ],
159 "stl": [
160 "accumulate",
161 "count",
162 "find",
163 "find_end",
164 "includes",
165 "inner_product",
166 "is_permutation",
167 "max_element",
168 "merge",
169 "next_permutation",
170 "nth_element",
171 "partial_sum",
172 "partition",

Callers 2

perfdoc.pyFile · 0.90
perf.pyFile · 0.85

Calls 3

add_sampleMethod · 0.95
ReportClass · 0.85
run_perf_processFunction · 0.85

Tested by

no test coverage detected