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.
- Get a Free Account on SAP BTP Trial or use the Free Tier
- Install the Cloud Foundry Command Line Interface (CLI)
Please clone this repository and use cf push
to deploy all three applications to you Cloud Foundry space.
- Browse to the golang project folder
cd golang
- Deploy the app
cf push
Note: Please make sure to re-build the .jar archive if you want to modify the codebase of the java application
- Browse to the java project folder
cd ../java
- Deploy the app
cf push
- Browse to the node project folder
cd ../node
- Deploy the app
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.