Last active
May 11, 2016 10:18
-
-
Save eerohele/4f0936486355a5fbbbc3e893fcc93a72 to your computer and use it in GitHub Desktop.
Saxon-J 9.1.0.8 vs Saxon-EE 9.7.0.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/> | |
<xsl:template match="@* | node()"> | |
<xsl:copy> | |
<xsl:apply-templates select="@* | node()"/> | |
</xsl:copy> | |
</xsl:template> | |
</xsl:stylesheet> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Saxon-J 9.1.0.8 | |
$ time java -cp lib/saxon-9.1.0.8.jar net.sf.saxon.Transform -repeat:1000 -xsl:identity.xsl -s:identity.xsl -o:/dev/null | |
*** Average execution time over 1000 runs: 1ms | |
1.54 real 3.58 user 0.25 sys | |
# Saxon-EE 9.7.0.4 (default optimization) | |
$ time java -cp /opt/saxon/saxon9ee.jar net.sf.saxon.Transform -repeat:1000 -xsl:identity.xsl -s:identity.xsl -o:/dev/null | |
*** Average execution time over last 501 runs: 0.469361ms | |
6.76 real 16.53 user 0.63 sys | |
# Saxon-EE 9.7.0.4 (no optimization) | |
$ time java -cp /opt/saxon/saxon9ee.jar com.saxonica.Transform -repeat:1000 -xsl:xsl/identity.xsl -s:xsl/identity.xsl -o:/dev/null -opt:0 | |
*** Average execution time over last 501 runs: 0.507004ms | |
4.41 real 11.38 user 0.47 sys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment