Skip to content

Commit

Permalink
"benchmark" results
Browse files Browse the repository at this point in the history
  • Loading branch information
andrus committed Mar 31, 2018
1 parent cd1fb80 commit c903efc
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,24 @@ Guice.
Go to "Preferences > Annotation Processors", and check "Enable Annotation
Processing".

## Results - Jar-with-Dependencies Sizes
## "Benchmark"

```
$ mvn clean package
$ find . -name '*.jar' |xargs ls -l |grep -v original |grep -v common
-rw-r--r-- 1 andrus staff 80803 Mar 31 16:52 ./cayennedi/target/cayennedi-1.0-SNAPSHOT.jar
-rw-r--r-- 1 andrus staff 52533 Mar 31 16:52 ./dagger/target/dagger-1.0-SNAPSHOT.jar
-rw-r--r-- 1 andrus staff 3522218 Mar 31 16:52 ./guice/target/guice-1.0-SNAPSHOT.jar
```
## Results - Startup Time
# Get the file sizes
$ find . -name '*.jar' |xargs ls -l |grep -v original |grep -v common
```
# Execution time
$ time java -jar ./cayennedi/target/cayennedi-1.0-SNAPSHOT.jar
...
real 0m0.166s
```

```
$ time java -jar ./dagger/target/dagger-1.0-SNAPSHOT.jar
...
real 0m0.122s
$ time java -jar ./guice/target/guice-1.0-SNAPSHOT.jar
```

```
$ time java -jar ./guice/target/guice-1.0-SNAPSHOT.jar
...
real 0m0.353s
```
## Results

|DI|Jar with Dependencies, KB|Exec time, ms|
|----|-----|-----|
|Cayenne DI|78.9|166|
|Dagger| 51.3|122|
|Guice|3439.7|353|

0 comments on commit c903efc

Please sign in to comment.