An empirical analysis of source code metrics and smart contract resource consumption. Issue 10 (14th May 2020)
- Record Type:
- Journal Article
- Title:
- An empirical analysis of source code metrics and smart contract resource consumption. Issue 10 (14th May 2020)
- Main Title:
- An empirical analysis of source code metrics and smart contract resource consumption
- Authors:
- Ajienka, Nemitari
Vangorp, Peter
Capiluppi, Andrea - Abstract:
- Abstract: A smart contract (SC) is a programme stored in the Ethereum blockchain by a contract‐creation transaction. SC developers deploy an instance of the SC and attempt to execute it in exchange for a fee, paid in Ethereum coins (Ether). If the computation needed for their execution turns out to be larger than the effort proposed by the developer (i.e., the gasLimit ), their client instantiation will not be completed successfully. In this paper, we examine SCs from 11 Ethereum blockchain‐oriented software projects hosted on GitHub.com, and we evaluate the resources needed for their deployment (i.e., the gasUsed ). For each of these contracts, we also extract a suite of object‐oriented metrics, to evaluate their structural characteristics. Our results show a statistically significant correlation between some of the object‐oriented (OO) metrics and the resources consumed on the Ethereum blockchain network when deploying SCs. This result has a direct impact on how Ethereum developers engage with a SC: evaluating its structural characteristics, they will be able to produce a better estimate of the resources needed to deploy it. Other results show specific source code metrics to be prioritised based on application domains when the projects are clustered based on common themes.
- Is Part Of:
- Journal of software. Volume 32:Issue 10(2020)
- Journal:
- Journal of software
- Issue:
- Volume 32:Issue 10(2020)
- Issue Display:
- Volume 32, Issue 10 (2020)
- Year:
- 2020
- Volume:
- 32
- Issue:
- 10
- Issue Sort Value:
- 2020-0032-0010-0000
- Page Start:
- n/a
- Page End:
- n/a
- Publication Date:
- 2020-05-14
- Subjects:
- abstract syntax‐tree (AST) -- blockchain‐oriented software (BOS) -- Chidamber and Kemerer (C&K) -- object‐oriented (OO) -- object‐oriented programming (OOP) -- smart contract (SC)
Software engineering -- Periodicals
Computer software -- Development -- Periodicals
Software maintenance -- Periodicals
005.1 - Journal URLs:
- http://onlinelibrary.wiley.com/journal/10.1002/(ISSN)2047-7481 ↗
http://onlinelibrary.wiley.com/ ↗ - DOI:
- 10.1002/smr.2267 ↗
- Languages:
- English
- ISSNs:
- 2047-7473
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 14411.xml