Lines Matching full:ratio
125 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument
127 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
139 double ratio; in test_ipc() local
147 compute_metric("IPC", vals, &ratio) == 0); in test_ipc()
149 TEST_ASSERT_VAL("IPC failed, wrong ratio", in test_ipc()
150 ratio == 1.5); in test_ipc()
156 double ratio; in test_frontend() local
166 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend()
168 TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio", in test_frontend()
169 ratio == 0.45); in test_frontend()
175 double ratio; in test_cache_miss_cycles() local
184 compute_metric("cache_miss_cycles", vals, &ratio) == 0); in test_cache_miss_cycles()
186 TEST_ASSERT_VAL("cache_miss_cycles failed, wrong ratio", in test_cache_miss_cycles()
187 ratio == 1.25); in test_cache_miss_cycles()
215 double ratio; in test_dcache_l2() local
227 compute_metric("DCache_L2_Hits", vals, &ratio) == 0); in test_dcache_l2()
229 TEST_ASSERT_VAL("DCache_L2_Hits failed, wrong ratio", in test_dcache_l2()
230 ratio == 0.3); in test_dcache_l2()
233 compute_metric("DCache_L2_Misses", vals, &ratio) == 0); in test_dcache_l2()
235 TEST_ASSERT_VAL("DCache_L2_Misses failed, wrong ratio", in test_dcache_l2()
236 ratio == 0.7); in test_dcache_l2()
242 double ratio; in test_recursion_fail() local
250 compute_metric("M1", vals, &ratio) == -1); in test_recursion_fail()
253 compute_metric("M3", vals, &ratio) == -1); in test_recursion_fail()
259 double ratio; in test_memory_bandwidth() local
267 compute_metric("L1D_Cache_Fill_BW", vals, &ratio) == 0); in test_memory_bandwidth()
268 TEST_ASSERT_VAL("L1D_Cache_Fill_BW, wrong ratio", in test_memory_bandwidth()
269 1.28 == ratio); in test_memory_bandwidth()
290 TEST_ASSERT_VAL("group IPC failed, wrong ratio", in test_metric_group()
293 TEST_ASSERT_VAL("group cache_miss_cycles failed, wrong ratio", in test_metric_group()