Three almost identical simple web server applications (written in Java, Golang and Node.js respectively) to demonstrate their distinct runtime properties hands-on
This public repository is read-only and no longer maintained. For the latest sample code repositories, visit the SAP Samples organization.
Each programming language has been designed for a specific use-case and performs well / resource efficient for this use-case. But this doesn’t mean that a programming language is suited for all .
This repository contains three almost identical simple web server applications (written in Java, Golang and Node.js respectively) to demonstrate their distinct runtime properties hands-on. We have measured the footprints of those applications, which ran on SAP BTP, Cloud Foundry environment, to validate the hypothesis.
Check out this blog post for more details and the results of the experiment.
Please clone this repository and use cf push
to deploy all three applications to you Cloud Foundry space.
cd golang
cf push
Note: Please make sure to re-build the .jar archive if you want to modify the codebase of the java application
cd ../java
cf push
cd ../node
cf push
The purpose of these apps is to demonstrate the memory consumption and CPU utilization of the respective Cloud Foundry runtimes given a very simple task. This experiment should not suggest that any programming language is superior to the other.
Please open issues here on Github if you find errors or bugs in the implementation. You can use the comments section of the blog post for general remarks.