Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created March 16, 2012 23:57
Show Gist options
  • Save diegopacheco/2053726 to your computer and use it in GitHub Desktop.
Save diegopacheco/2053726 to your computer and use it in GitHub Desktop.
Scala Times
PURE JAVA Arch(2.8.7.7) JBoss Boot Up
=======================================
21:49:04,594 INFO [ServerImpl] JBoss (Microcontainer)
[5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 29s:278ms
Scala/JAVA Arch(3.0.0)Jboss Boot UP
====================================
21:39:15,830 INFO [ServerImpl] JBoss (Microcontainer)
[5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 31s:169ms
PURE JAVA Arch(2.8.7.7) TURN ARROUND (SoapUi: 100 Threads, Simple, Test Delay 1000, Random 0.5 - 3x run )
=====================================
7ms
Scala/JAVA Arch(3.0.0) TURN ARROUND (SoapUi: 100 Threads, Simple, Test Delay 1000, Random 0.5 - 3x run )
===================================
6ms
PURE JAVA Arch(2.8.7.7) Build Time
===================================
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ngm-core-parent ................................... SUCCESS [2.184s]
[INFO] ngm-core-exceptions ............................... SUCCESS [8.049s]
[INFO] ngm-core-metadata ................................. SUCCESS [4.961s]
[INFO] ngm-core-cache .................................... SUCCESS [4.009s]
[INFO] ngm-core-cache-offline ............................ SUCCESS [10.556s]
[INFO] ngm-core-headers .................................. SUCCESS [1.512s]
[INFO] ngm-ztest-drug-ct ................................. SUCCESS [1.510s]
[INFO] ngm-core-utils .................................... SUCCESS [5.845s]
[INFO] ngm-ztest-drug-si ................................. SUCCESS [1.685s]
[INFO] ngm-core-routing .................................. SUCCESS [3.354s]
[INFO] ngm-dev-annotations ............................... SUCCESS [0.780s]
[INFO] ngm-core-serialization ............................ SUCCESS [2.979s]
[INFO] ngm-core-jms ...................................... SUCCESS [4.878s]
[INFO] ngm-mr-base ....................................... SUCCESS [11.664s]
[INFO] ngm-core-workers .................................. SUCCESS [5.013s]
[INFO] ngm-mr-worker ..................................... SUCCESS [2.575s]
[INFO] ngm-services-base-war-spring-ctx .................. SUCCESS [1.622s]
[INFO] ngm-core-cache-jmx ................................ SUCCESS [1.823s]
[INFO] ngm-core-conf ..................................... SUCCESS [0.679s]
[INFO] ngm-core-interceptor .............................. SUCCESS [14.253s]
[INFO] ngm-msg-tracking-parser ........................... SUCCESS [0.740s]
[INFO] ngm-core-da-worker ................................ SUCCESS [2.310s]
[INFO] ngm-ztest-drug-consumer ........................... SUCCESS [0.980s]
[INFO] ngm-ztest-mr-war .................................. SUCCESS [0.420s]
[INFO] ngm-ztest-mr-ear .................................. SUCCESS [0.691s]
[INFO] ngm-ztest-drug-wk ................................. SUCCESS [0.920s]
[INFO] ngm-ztest-drug-si-wk-ear .......................... SUCCESS [0.140s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:38.014s
[INFO] Finished at: Fri Mar 16 20:47:32 BRT 2012
[INFO] Final Memory: 58M/304M
[INFO] ------------------------------------------------------------------------
Scala/JAVA Arch(3.0.0)Build time
================================
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ngm-core-parent ................................... SUCCESS [1.617s]
[INFO] ngm-core-exceptions ............................... SUCCESS [6.351s]
[INFO] ngm-core-metadata ................................. SUCCESS [6.353s]
[INFO] ngm-dev-annotations ............................... SUCCESS [2.268s]
[INFO] ngm-core-cache .................................... SUCCESS [8.725s]
[INFO] ngm-core-cache-offline ............................ SUCCESS [10.252s]
[INFO] ngm-core-headers .................................. SUCCESS [3.259s]
[INFO] ngm-ztest-drug-ct ................................. SUCCESS [2.759s]
[INFO] ngm-core-utils .................................... SUCCESS [12.508s]
[INFO] ngm-ztest-drug-si ................................. SUCCESS [2.746s]
[INFO] ngm-core-routing .................................. SUCCESS [10.379s]
[INFO] ngm-core-serialization ............................ SUCCESS [9.306s]
[INFO] ngm-core-jms ...................................... SUCCESS [11.427s]
[INFO] ngm-mr-base ....................................... SUCCESS [16.905s]
[INFO] ngm-core-workers .................................. SUCCESS [8.662s]
[INFO] ngm-mr-worker ..................................... SUCCESS [2.999s]
[INFO] ngm-services-base-war-spring-ctx .................. SUCCESS [2.543s]
[INFO] ngm-core-cache-jmx ................................ SUCCESS [4.474s]
[INFO] ngm-core-conf ..................................... SUCCESS [0.409s]
[INFO] ngm-core-interceptor .............................. SUCCESS [18.862s]
[INFO] ngm-msg-tracking-parser ........................... SUCCESS [4.169s]
[INFO] ngm-core-da-worker ................................ SUCCESS [8.910s]
[INFO] ngm-ztest-drug-consumer ........................... SUCCESS [4.262s]
[INFO] ngm-ztest-mr-war .................................. SUCCESS [0.363s]
[INFO] ngm-ztest-mr-ear .................................. SUCCESS [0.320s]
[INFO] ngm-ztest-drug-wk ................................. SUCCESS [3.184s]
[INFO] ngm-ztest-drug-si-wk-ear .......................... SUCCESS [0.174s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:44.751s
[INFO] Finished at: Sat Mar 17 05:05:07 BRT 2012
[INFO] Final Memory: 123M/281M
[INFO] ------------------------------------------------------------------------
All this build times are sequential... I'm using Scala Maven Plugin(http://scala-tools.org/mvnsites/maven-scala-plugin/ 2.15.2)
witch does not support parallel build BUT if I turn on parallel build in maven(mvn clean install -T 4C) I got some improvements...
and the build time goes down :-) And Overall time goes 1:45.678s !!! Pretty Good!
[INFO] ------------------------------------------------------------------------
[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project *
[WARNING] * contains the following plugin(s) that are not marked as *
[WARNING] * @threadSafe to support parallel building. *
[WARNING] * While this /may/ work fine, please look for plugin updates *
[WARNING] * and/or request plugins be made thread-safe. *
[WARNING] * If reporting an issue, report it against the plugin in *
[WARNING] * question, not against maven-core *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in ngm-ztest-mr-ear:
[WARNING] org.scala-tools:maven-scala-plugin:2.15.2
[WARNING] *****************************************************************
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ngm-core-parent ................................... SUCCESS [1.655s]
[INFO] ngm-core-exceptions ............................... SUCCESS [8.442s]
[INFO] ngm-core-metadata ................................. SUCCESS [7.851s]
[INFO] ngm-dev-annotations ............................... SUCCESS [4.878s]
[INFO] ngm-core-cache .................................... SUCCESS [11.188s]
[INFO] ngm-core-cache-offline ............................ SUCCESS [22.598s]
[INFO] ngm-core-headers .................................. SUCCESS [4.306s]
[INFO] ngm-ztest-drug-ct ................................. SUCCESS [4.179s]
[INFO] ngm-core-utils .................................... SUCCESS [22.185s]
[INFO] ngm-ztest-drug-si ................................. SUCCESS [9.797s]
[INFO] ngm-core-routing .................................. SUCCESS [15.444s]
[INFO] ngm-core-serialization ............................ SUCCESS [18.211s]
[INFO] ngm-core-jms ...................................... SUCCESS [13.946s]
[INFO] ngm-mr-base ....................................... SUCCESS [20.663s]
[INFO] ngm-core-workers .................................. SUCCESS [12.593s]
[INFO] ngm-mr-worker ..................................... SUCCESS [3.296s]
[INFO] ngm-services-base-war-spring-ctx .................. SUCCESS [5.835s]
[INFO] ngm-core-cache-jmx ................................ SUCCESS [22.580s]
[INFO] ngm-core-conf ..................................... SUCCESS [1.933s]
[INFO] ngm-core-interceptor .............................. SUCCESS [28.170s]
[INFO] ngm-msg-tracking-parser ........................... SUCCESS [7.446s]
[INFO] ngm-core-da-worker ................................ SUCCESS [19.151s]
[INFO] ngm-ztest-drug-consumer ........................... SUCCESS [10.284s]
[INFO] ngm-ztest-mr-war .................................. SUCCESS [0.606s]
[INFO] ngm-ztest-mr-ear .................................. SUCCESS [0.328s]
[INFO] ngm-ztest-drug-wk ................................. SUCCESS [3.967s]
[INFO] ngm-ztest-drug-si-wk-ear .......................... SUCCESS [0.412s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:45.678s (Wall Clock)
[INFO] Finished at: Sat Mar 17 07:47:42 BRT 2012
[INFO] Final Memory: 125M/679M
[INFO] ------------------------------------------------------------------------
BUT... If You download (https://github.com/davidB/maven-scala-plugin/tree/) and run a clean install(in our local machine)
after the build finish change our pm to use this TRUNK version(17/03/2012 know as 2.16.0-SNAPSHOT) becase this version is
Maven 3 Parallel as they said here https://github.com/davidB/maven-scala-plugin/issues/54
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>2.16.0-SNAPSHOT</version>
</plugin>
Build goes... TA DA DA DAM..... (mvn clean install -T 1C)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ngm-core-parent ................................... SUCCESS [2.038s]
[INFO] ngm-core-exceptions ............................... SUCCESS [7.089s]
[INFO] ngm-core-metadata ................................. SUCCESS [7.338s]
[INFO] ngm-dev-annotations ............................... SUCCESS [4.473s]
[INFO] ngm-core-cache .................................... SUCCESS [10.558s]
[INFO] ngm-core-cache-offline ............................ SUCCESS [26.054s]
[INFO] ngm-core-headers .................................. SUCCESS [3.551s]
[INFO] ngm-ztest-drug-ct ................................. SUCCESS [3.972s]
[INFO] ngm-core-utils .................................... SUCCESS [18.187s]
[INFO] ngm-ztest-drug-si ................................. SUCCESS [9.703s]
[INFO] ngm-core-routing .................................. SUCCESS [13.741s]
[INFO] ngm-core-serialization ............................ SUCCESS [17.729s]
[INFO] ngm-core-jms ...................................... SUCCESS [12.858s]
[INFO] ngm-mr-base ....................................... SUCCESS [19.804s]
[INFO] ngm-core-workers .................................. SUCCESS [12.930s]
[INFO] ngm-mr-worker ..................................... SUCCESS [2.768s]
[INFO] ngm-services-base-war-spring-ctx .................. SUCCESS [4.931s]
[INFO] ngm-core-cache-jmx ................................ SUCCESS [23.925s]
[INFO] ngm-core-conf ..................................... SUCCESS [1.980s]
[INFO] ngm-core-interceptor .............................. SUCCESS [27.321s]
[INFO] ngm-msg-tracking-parser ........................... SUCCESS [6.146s]
[INFO] ngm-core-da-worker ................................ SUCCESS [14.833s]
[INFO] ngm-ztest-drug-consumer ........................... SUCCESS [12.426s]
[INFO] ngm-ztest-mr-war .................................. SUCCESS [0.697s]
[INFO] ngm-ztest-mr-ear .................................. SUCCESS [0.346s]
[INFO] ngm-ztest-drug-wk ................................. SUCCESS [3.322s]
[INFO] ngm-ztest-drug-si-wk-ear .......................... SUCCESS [0.505s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:36.214s (Wall Clock)
[INFO] Finished at: Sat Mar 17 08:41:16 BRT 2012
[INFO] Final Memory: 125M/614M
[INFO] ------------------------------------------------------------------------
WOW Scala build is faster than Java! But If I run java(2.8.7.7) with mvn clean install -T 1C Java beats scala badly :( => 34.960s
its 1minute faster... yeah but remember this is scala with maven... is the best we can get without using SBT...
I believe this times are pretty acceptable.
[UPDATE: 20/03/2012]
If I use the following build command: $ mvn clean install -o -T 4C I reduced the time a lot... much way faster... and become [1:13.250s]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ngm-core-parent ................................... SUCCESS [0.827s]
[INFO] ngm-core-exceptions ............................... SUCCESS [2.917s]
[INFO] ngm-core-metadata ................................. SUCCESS [3.359s]
[INFO] ngm-dev-annotations ............................... SUCCESS [2.075s]
[INFO] ngm-core-cache .................................... SUCCESS [8.874s]
[INFO] ngm-core-cache-offline ............................ SUCCESS [16.126s]
[INFO] ngm-core-headers .................................. SUCCESS [2.974s]
[INFO] ngm-ztest-drug-ct ................................. SUCCESS [1.524s]
[INFO] ngm-core-utils .................................... SUCCESS [16.691s]
[INFO] ngm-ztest-drug-si ................................. SUCCESS [2.444s]
[INFO] ngm-core-routing .................................. SUCCESS [14.987s]
[INFO] ngm-core-serialization ............................ SUCCESS [13.690s]
[INFO] ngm-core-jms ...................................... SUCCESS [11.347s]
[INFO] ngm-mr-base ....................................... SUCCESS [16.973s]
[INFO] ngm-core-workers .................................. SUCCESS [9.560s]
[INFO] ngm-mr-worker ..................................... SUCCESS [2.278s]
[INFO] ngm-services-base-war-spring-ctx .................. SUCCESS [2.293s]
[INFO] ngm-core-cache-jmx ................................ SUCCESS [12.832s]
[INFO] ngm-core-conf ..................................... SUCCESS [2.059s]
[INFO] ngm-core-interceptor .............................. SUCCESS [15.350s]
[INFO] ngm-msg-tracking-parser ........................... SUCCESS [5.616s]
[INFO] ngm-core-da-worker ................................ SUCCESS [14.516s]
[INFO] ngm-ztest-drug-consumer ........................... SUCCESS [8.834s]
[INFO] ngm-ztest-mr-war .................................. SUCCESS [0.452s]
[INFO] ngm-ztest-mr-ear .................................. SUCCESS [0.173s]
[INFO] ngm-ztest-drug-wk ................................. SUCCESS [3.153s]
[INFO] ngm-ztest-drug-si-wk-ear .......................... SUCCESS [0.239s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:13.250s (Wall Clock)
[INFO] Finished at: Tue Mar 20 08:52:58 BRT 2012
[INFO] Final Memory: 123M/982M
[INFO] ------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment