{'fraction_non_alphanumeric': 0.02099737532808399, 'fraction_numerical': 0.0013123359580052493, 'mean_word_length': 4.7368421052631575, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Power and Energy Code Profiling in Pharo

Modeling energy consumption is a major concern when designing software systems such as a cloud service or for a mobile device (e.g., smartphone, laptop). Unfortunately, we have little knowledge on how decisions taken by a programmer may impact the energy profile of a system. This paper investigates the energy consumption in the Pharo programming language. We have closely monitored the power consumption of five micro-benchmarks and four macro-benchmarks. Our findings indicate that the way the memory is used has a significant impact on the power consumption. We propose a code profiler to measure the power consumption of any Pharo code expression. Our profiler is available under the MIT license and run on Pharo 5.