Skip to main content

Energy Consumption of Evolutionary Algorithms in JavaScript

  • Conference paper
  • First Online:
Artificial Life and Evolutionary Computation (WIVACE 2023)

Abstract

Green computing is a methodology for saving energy when implementing algorithms. In environments where the runtime is an integral part of the application, it is essential to measure their energy efficiency so that researchers and practitioners have enough choice. In this paper, we will focus on JavaScript runtime environments for evolutionary algorithms; although not the most popular language for scientific computing, it is the most popular language for developers, and it has been used repeatedly to implement all kinds of evolutionary algorithms almost since its inception. In this paper, we will focus on the importance of measuring different versions of the same runtimes, as well as extending the EA operators that will be measured. We also like to remark on the importance of testing the operators in different architectures to have a more precise picture that tips the balance towards one runtime or another.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Abdelhafez, A., Alba, E., Luque, G.: A component-based study of energy consumption for sequential and parallel genetic algorithms. J. Supercomput. 75, 6194–6219 (2019)

    Article  Google Scholar 

  2. Cruz, L.: Tools to measure software energy consumption from your computer (2021). https://luiscruz.github.io/2021/07/20/measuring-energy.html

  3. Demaine, E.D., Lynch, J., Mirano, G.J., Tyagi, N.: Energy-efficient algorithms. In: Proceedings of the 2016 ACM Conference on Innovations in Theoretical Computer Science, pp. 321–332 (2016)

    Google Scholar 

  4. Díaz-Álvarez, J., Castillo, P.A., Fernandez de Vega, F., Chávez, F., Alvarado, J.: Population size influence on the energy consumption of genetic programming. Measur. Control 55(1–2), 102–115 (2022)

    Google Scholar 

  5. Diaz Alvarez, J., Castillo Martínez, P.A., Rodríguez Díaz, F.J., Fernández de Vega, F., et al.: A fuzzy rule-based system to predict energy consumption of genetic programming algorithms (2018)

    Google Scholar 

  6. Doglio, F.: Introducing Deno

    Google Scholar 

  7. Garcia, J.A.: Exploration of energy consumption using the intel running average power limit interface. In: 2019 IEEE Space Computing Conference (SCC), pp. 1–10 (2019). https://doi.org/10.1109/SpaceComp.2019.00005

  8. González, J., Merelo-Guervós, J.J., Castillo, P.A., Rivas, V., Romero, G., Prieto, A.: Optimized web newspaper layout using simulated annealing. In: Mira, J., Sánchez-Andrés, J.V. (eds.) IWANN 1999. LNCS, vol. 1607, pp. 759–768. Springer, Heidelberg (1999). https://doi.org/10.1007/BFb0100543

    Chapter  Google Scholar 

  9. Hähnel, M., Döbel, B., Völp, M., Härtig, H.: Measuring energy consumption for short code paths using RAPL. SIGMETRICS Perform. Eval. Rev. 40(3), 13–17 (2012). https://doi.org/10.1145/2425248.2425252

    Article  Google Scholar 

  10. Khan, K.N., Hirki, M., Niemi, T., Nurminen, J.K., Ou, Z.: RAPL in action: experiences in using RAPL for power measurements. ACM Trans. Model. Perform. Eval. Comput. Syst. (TOMPECS) 3(2), 1–26 (2018)

    Article  Google Scholar 

  11. Köhler, S., et al.: Pinpoint the Joules: unifying runtime-support for energy measurements on heterogeneous systems. In: 2020 IEEE/ACM International Workshop on Runtime and Operating Systems for Supercomputers (ROSS), pp. 31–40 (2020). https://doi.org/10.1109/ROSS51935.2020.00009

  12. Maryam, K., Sardaraz, M., Tahir, M.: Evolutionary algorithms in cloud computing from the perspective of energy consumption: a review. In: 2018 14th International Conference on Emerging Technologies (ICET), pp. 1–6. IEEE (2018)

    Google Scholar 

  13. Merelo, J.J., et al.: Benchmarking languages for evolutionary algorithms. In: Squillero, G., Burelli, P. (eds.) EvoApplications 2016 Part II. LNCS, vol. 9598, pp. 27–41. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-31153-1_3

    Chapter  Google Scholar 

  14. Merelo-Guervós, J.J., García-Valdez, M., Castillo, P.A.: An analysis of energy consumption of JavaScript interpreters with evolutionary algorithm workloads. In: Fill, H., Mayo, F.J.D., van Sinderen, M., Maciaszek, L.A. (eds.) Proceedings of the 18th International Conference on Software Technologies, ICSOFT 2023, Rome, Italy, July 10-12, 2023, pp. 175–184. SCITEPRESS (2023). https://doi.org/10.5220/0012128100003538

  15. Merelo-Guervós, J.J., Romero, G., García-Arenas, M., Castillo, P.A., Mora, A.M., Jiménez-Laredo, J.L.: Implementation matters: programming best practices for evolutionary algorithms. In: Cabestany, J., Rojas, I., Caparrós, G.J. (eds.) IWANN 2011. LNCS, vol. 6692, pp. 333–340. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-21498-1_42

    Chapter  Google Scholar 

  16. Tomar, D.: Bun JS : a brand-new, lightning-quick JavaScript runtime. Medium (2022). https://devangtomar.medium.com/bun-a-brand-new-lightning-quick-javascript-runtime-e42119a306ca

  17. de Vega, F.F., et al.: A cross-platform assessment of energy consumption in evolutionary algorithms. In: Handl, J., Hart, E., Lewis, P.R., López-Ibáñez, M., Ochoa, G., Paechter, B. (eds.) PPSN 2016. LNCS, pp. 548–557. Springer, Cham (2016)

    Chapter  Google Scholar 

  18. Fernández de Vega, F., Díaz, J., García, J.Á., Chávez, F., Alvarado, J.: Looking for energy efficient genetic algorithms. In: Idoumghar, L., Legrand, P., Liefooghe, A., Lutton, E., Monmarché, N., Schoenauer, M. (eds.) Artificial Evolution. EA2019. LNCS, vol. 12052, pp. 96–109. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-45715-0_8

  19. Verdecchia, R., Sallou, J., Cruz, L.: A systematic review of green AI. arXiv preprint arXiv:2301.11047 (2023)

Download references

Acknowledgements

This work is supported by the Ministerio español de Economía y Competitividad (Spanish Ministry of Competitivity and Economy) under project PID2020-115570GB-C22 (DemocratAI::UGR).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Juan J. Merelo-Guervós .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Merelo-Guervós, J.J., García-Valdez, M., Castillo, P.A. (2024). Energy Consumption of Evolutionary Algorithms in JavaScript. In: Villani, M., Cagnoni, S., Serra, R. (eds) Artificial Life and Evolutionary Computation. WIVACE 2023. Communications in Computer and Information Science, vol 1977. Springer, Cham. https://doi.org/10.1007/978-3-031-57430-6_1

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-57430-6_1

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-57429-0

  • Online ISBN: 978-3-031-57430-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics