Saved in:
Bibliographic Details
Main Authors: Zhang, Liwei, Cui, Baoquan, Ma, Xutong, Zhang, Jian
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.07208
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916732409479168
author Zhang, Liwei
Cui, Baoquan
Ma, Xutong
Zhang, Jian
author_facet Zhang, Liwei
Cui, Baoquan
Ma, Xutong
Zhang, Jian
contents Static performance estimation is essential during compile-time analysis, yet traditional runtime-based methods are costly and platform-dependent. We investigate mems, the number of memory accesses, as a static and architecture-independent performance metric. We develop a Clang-based automated instrumentation tool that rewrites source code to insert path tracing and \textit{mems} counting logic. This allows us to evaluate mems-based performance estimation across ten classical algorithm programs. Experimental results show that within the same program, execution paths with higher mems values consistently exhibit longer runtime. However, this correlation weakens between different programs, suggesting that mems is best suited for comparing performance of different execution paths in a program.
format Preprint
id arxiv_https___arxiv_org_abs_2505_07208
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle An Empirical Study: MEMS as a Static Performance Metric
Zhang, Liwei
Cui, Baoquan
Ma, Xutong
Zhang, Jian
Software Engineering
Static performance estimation is essential during compile-time analysis, yet traditional runtime-based methods are costly and platform-dependent. We investigate mems, the number of memory accesses, as a static and architecture-independent performance metric. We develop a Clang-based automated instrumentation tool that rewrites source code to insert path tracing and \textit{mems} counting logic. This allows us to evaluate mems-based performance estimation across ten classical algorithm programs. Experimental results show that within the same program, execution paths with higher mems values consistently exhibit longer runtime. However, this correlation weakens between different programs, suggesting that mems is best suited for comparing performance of different execution paths in a program.
title An Empirical Study: MEMS as a Static Performance Metric
topic Software Engineering
url https://arxiv.org/abs/2505.07208