项目作者: SAP-samples

项目描述 :
Three almost identical simple web server applications (written in Java, Golang and Node.js respectively) to demonstrate their distinct runtime properties hands-on
高级语言: Java
项目地址: git://github.com/SAP-samples/cf-web-server-benchmark-tests.git


Important Notice

This public repository is read-only and no longer maintained. For the latest sample code repositories, visit the SAP Samples organization.

Cloud Foundry Web Server Brenchmark Test

REUSE status

Description

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.

Requirements

Download and Installation

Please clone this repository and use cf push to deploy all three applications to you Cloud Foundry space.

Deploy the Golang app

  1. Browse to the golang project folder
    1. cd golang
  2. Deploy the app
    1. cf push

Deploy the Java app

Note: Please make sure to re-build the .jar archive if you want to modify the codebase of the java application

  1. Browse to the java project folder
    1. cd ../java
  2. Deploy the app
    1. cf push

Deploy the Node.js app

  1. Browse to the node project folder
    1. cd ../node
  2. Deploy the app
    1. cf push

Known Issues

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.

How to obtain support

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.