Skip to content

Commit

Permalink
Replaced IntegralMoney with FastMoney
Browse files Browse the repository at this point in the history
  • Loading branch information
atsticks committed Mar 7, 2015
1 parent b45c7e8 commit cd82797
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
41 changes: 35 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -301,20 +301,50 @@
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>1.5.2</version>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>1.5.0-alpha.6</version>
</dependency>
</dependencies>
<configuration>
<sourceDirectory>src/main/asciidoc</sourceDirectory>
<baseDir>${project.basedir}</baseDir>
<imagesDir>src/main/asciidoc/images/</imagesDir>
<embedAssets>true</embedAssets>
<!-- eruby>erubis</eruby -->
</configuration>
<executions>
<execution>
<id>output-html</id>
<phase>generate-resources</phase>
<phase>prepare-package</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<outputDirectory>target/docs</outputDirectory>
<sourceHighlighter>highlightjs</sourceHighlighter>
<!-- coderay -->
<sourceHighlighter>coderay</sourceHighlighter>
<backend>html</backend>
<embedAssets>true</embedAssets>
<imagesDir>arc/main/asciidoc/images</imagesDir>
</configuration>
</execution>
<execution>
<id>output-pdf</id>
<phase>prepare-package</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>pdf</backend>
<!-- WARNING callout bullets don't yet work with CodeRay -->
<sourceHighlighter>coderay</sourceHighlighter>
<attributes>
<pagenums/>
<toc/>
<idprefix/>
<idseparator>-</idseparator>
</attributes>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -376,7 +406,6 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<configuration></configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/org/javamoney/moneta/PerformanceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public void comparePerformanceNoRounding() {
end = System.currentTimeMillis();
duration = end - start;
System.out.println("Duration for " + NUM
+ " operations (IntegralMoney/long): "
+ duration + " ms (" + ((duration * 1000) / NUM)
+ " operations (FastMoney/long): "
+ duration + " ms (" + ((duration * 1000) / NUM)
+ " ns per loop) -> "
+ money2);

Expand All @@ -78,8 +78,8 @@ public void comparePerformanceNoRounding() {
end = System.currentTimeMillis();
duration = end - start;
System.out.println("Duration for " + NUM
+ " operations (IntegralMoney/FastMoney mixed): "
+ duration + " ms (" + ((duration * 1000) / NUM)
+ " operations (FastMoney/FastMoney mixed): "
+ duration + " ms (" + ((duration * 1000) / NUM)
+ " ns per loop) -> "
+ money3);
}
Expand Down

0 comments on commit cd82797

Please sign in to comment.