diff --git a/mlc-go-project/mlc-go-microservice/adderMicroservice/main.go b/mlc-go-project/mlc-go-microservice/adderMicroservice/main.go index 52bc6e5..34d38be 100644 --- a/mlc-go-project/mlc-go-microservice/adderMicroservice/main.go +++ b/mlc-go-project/mlc-go-microservice/adderMicroservice/main.go @@ -4,6 +4,7 @@ import ( "io" "net/http" "strconv" + "fmt" ) func handler(w http.ResponseWriter, r *http.Request) { @@ -30,5 +31,6 @@ func handler(w http.ResponseWriter, r *http.Request) { func main() { http.HandleFunc("/adder", handler) + fmt.Print("Starting up") http.ListenAndServe(":8080", nil) } \ No newline at end of file diff --git a/src/main/comparison/Results.numbers b/src/main/comparison/Results.numbers index 0061d1a..b20cdb3 100644 Binary files a/src/main/comparison/Results.numbers and b/src/main/comparison/Results.numbers differ diff --git a/src/main/comparison/measureLightness.sh b/src/main/comparison/measureLightness.sh index dc7dff4..acf7dac 100755 --- a/src/main/comparison/measureLightness.sh +++ b/src/main/comparison/measureLightness.sh @@ -11,10 +11,10 @@ function echoSizeOfFile { } function countAllLOCs { - find $1 \( -name "*.java" -or -name "*.xml" -or -name "*.xml" -or -name "*.yaml" \) -exec cat "{}" \; | wc -l + find $1 \( -name "*.java" -or -name "*.xml" -or -name "*.xml" -or -name "*.yaml" -or -name "*.go" \) -exec cat "{}" \; | wc -l } -pushd ../../../ +#pushd ../../../ # log "Build project" @@ -25,6 +25,7 @@ SPRINGBOOT_MS_DIR=mlc-springboot-project/mlc-springboot-microservice WILDFLY_SWARM_MS_DIR=mlc-wildflyswarm-project/mlc-wildflyswarm-microservice WILDFLY_MS_DIR=mlc-wildfly-project/mlc-wildfly-microservice SNAP_MS_DIR=mlc-snap-project/mlc-snap-microservice +GO_MS_DIR=mlc-go-project/mlc-go-microservice log "Measure sizes of Executables" @@ -40,6 +41,9 @@ echoSizeOfFile ${WILDFLY_SWARM_MS_DIR}/target/mlc-wildflyswarm-microservice-1.0- echo Snap echoSizeOfFile ${SNAP_MS_DIR}/.stack-work/docker/_home/.local/bin/* +echo Go +echoSizeOfFile ${GO_MS_DIR}/../target/* + log "Measure LOCs" echo Spring-Boot @@ -54,6 +58,9 @@ countAllLOCs ${WILDFLY_SWARM_MS_DIR} echo Snap countAllLOCs ${SNAP_MS_DIR} +echo Go +countAllLOCs ${GO_MS_DIR} + log Done