Skip to content

Commit a71a098

Browse files
committed
update simulator output
* remove byte miss ratio when ignore object size * add cost saving ratio when cost is not constant
1 parent 086dec0 commit a71a098

File tree

1 file changed

+1
-3
lines changed
  • libCacheSim/bin/cachesim

1 file changed

+1
-3
lines changed

libCacheSim/bin/cachesim/main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ int main(int argc, char **argv) {
7676
"%s %s cache size %8ld%s, %lld req, miss ratio %.4lf",
7777
args.reader->trace_path, result[i].cache_name,
7878
(long)(result[i].cache_size / size_unit), size_unit_str,
79-
(long long)result[i].n_req,
80-
(double)result[i].n_miss / (double)result[i].n_req,
81-
(double)result[i].n_miss_byte / (double)result[i].n_req_byte);
79+
(long long)result[i].n_req, miss_ratio);
8280
if (result[i].n_req_byte > result[i].n_req) {
8381
snprintf(output_str + strlen(output_str), 1024 - strlen(output_str),
8482
", byte miss ratio %.4lf\n", byte_miss_ratio);

0 commit comments

Comments
 (0)