Experiments in Cost Analysis of Java']Java Bytecode

被引:7
|
作者
Albert, E. [1 ]
Arenas, P. [1 ]
Genaim, S. [2 ]
Puebla, G. [2 ]
Zanardini, D. [2 ]
机构
[1] Univ Complutense Madrid, DSIC, Madrid, Spain
[2] Tech Univ Madrid, Madrid, Spain
关键词
Cost analysis; !text type='Java']Java[!/text] bytecode; cost relations; recurrence equations; complexity;
D O I
10.1016/j.entcs.2007.02.061
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Recently, we proposed a general framework for the cost analysis of Java bytecode which can be used for measuring resource usage. This analysis generates, at compile-time, cost relations which define the cost of programs as a function of their input data size. The purpose of this paper is to assess the practicality of such cost analysis by experimentally evaluating a prototype analyzer implemented in Ciao. With this aim, we approximate the computational complexity of a set of selected benchmarks, including both well-known algorithms which have been used to evaluate existing cost analyzers in other programming paradigms, and other benchmarks which illustrate object-oriented features. In our evaluation, we first study whether the generated cost relations can be automatically solved. Our experiments show that in some cases the inferred cost relations can be automatically solved by using the Mathematica system, whereas, in other cases, some prior manipulation is required for the equations to be solvable. Moreover, we experimentally evaluated the running time of the different phases of the analysis process. Overall, we believe our experiments show that the efficiency of our cost analysis is acceptable, and that the obtained cost relations are useful in practice since, at least in our experiments, it is possible to get a closed form solution.
引用
收藏
页码:67 / 83
页数:17
相关论文
共 50 条
  • [21] Simulating Urban Growth in Nakuru (Kenya) Using Java']Java-Based Modelling Platform XULU
    Mubea, Kenneth
    Goetzke, Roland
    Menz, Gunter
    UKSIM-AMSS SEVENTH EUROPEAN MODELLING SYMPOSIUM ON COMPUTER MODELLING AND SIMULATION (EMS 2013), 2013, : 103 - 108
  • [22] A Joint Statistical Estimation of the RFC and CBO Metrics for Open-Source Applications Developed in Java']Java
    Prykhodko, Sergiy
    Prykhodko, Natalia
    Smykodub, Tetiana
    2022 IEEE 17TH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCES AND INFORMATION TECHNOLOGIES (CSIT), 2022, : 442 - 445
  • [23] Comparing Quality Metrics for Cloned and non cloned Java']Java Methods: A Large Scale Empirical Study
    Saini, Vaibhav
    Sajnani, Hitesh
    Lopes, Cristina
    32ND IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2016), 2016, : 257 - 267
  • [24] Dedicated Model Transformation Languages vs. General-purpose Languages: A Historical Perspective on ATL vs. Java']Java
    Goetz, Stefan
    Tichy, Matthias
    Kehrer, Timo
    PROCEEDINGS OF THE 9TH INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING AND SOFTWARE DEVELOPMENT (MODELSWARD), 2021, : 122 - 135
  • [25] Cost Analysis for Embedded Systems: Experiments with Priced Timed Automata
    Ovatman, Tolga
    Brekling, Aske W.
    Hansen, Michael R.
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2010, 238 (06) : 81 - 95
  • [26] Evaluation and Comparison of Dynamic Call Graph Generators for Java']JavaScript
    Herczeg, Zoltan
    Loki, Gabor
    PROCEEDINGS OF THE 14TH INTERNATIONAL CONFERENCE ON EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING (ENASE), 2019, : 472 - 479
  • [27] Just-In-Time Defect Prediction on Java']JavaScript Projects: A Replication Study
    Ni, Chao
    Xia, Xin
    Lo, David
    Yang, Xiaohu
    Hassan, Ahmed E.
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2022, 31 (04)
  • [28] Cost Relation Systems: A Language-Independent Target Language for Cost Analysis
    Albert, Elvira
    Arenas, Puri
    Genaim, Samir
    Puebla, German
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2009, 248 (31-46) : 31 - 46
  • [29] An introduction to cost analysis
    Camponovo, Ernest
    JAAPA-JOURNAL OF THE AMERICAN ACADEMY OF PHYSICIAN ASSISTANTS, 2015, 28 (04): : 45 - 48
  • [30] Differential Cost Analysis with Simultaneous Potentials and Anti-potentials
    Zikelic, Dorde
    Chang, Bor-Yuh Evan
    Bolignano, Pauline
    Raimondi, Franco
    PROCEEDINGS OF THE 43RD ACM SIGPLAN INTERNATIONAL CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION (PLDI '22), 2022, : 442 - 457