benchmarks/sieve/src/main/select-time.xsl
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 24 Jan 2016 12:08:45 +0100
changeset 1854 826eb936c9a8
parent 1787 benchmarks/matrix-multiplication/src/main/select-time.xsl@ea12a3bb4b33
permissions -rw-r--r--
The sieve benchmark makes the testing more real than the fake matrix multiplication
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 
     4     Back 2 Browser Bytecode Translator
     5     Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     6 
     7     This program is free software: you can redistribute it and/or modify
     8     it under the terms of the GNU General Public License as published by
     9     the Free Software Foundation, version 2 of the License.
    10 
    11     This program is distributed in the hope that it will be useful,
    12     but WITHOUT ANY WARRANTY; without even the implied warranty of
    13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14     GNU General Public License for more details.
    15 
    16     You should have received a copy of the GNU General Public License
    17     along with this program. Look for COPYING file in the top folder.
    18     If not, see http://opensource.org/licenses/GPL-2.0.
    19 
    20 -->
    21 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    22     <xsl:output method="text"/>
    23 
    24     <xsl:template match="/">
    25         <xsl:apply-templates mode="header" select="testsuite/testcase"/><xsl:text>End
    26 </xsl:text>
    27         <xsl:apply-templates mode="value" select="testsuite/testcase"/><xsl:text>NaN
    28 </xsl:text>
    29     </xsl:template>
    30         
    31     
    32     <xsl:template match="testcase" mode="header">
    33       <xsl:if test="contains(@name,'tenThousand')">
    34         <xsl:if test="not(contains(@name, '[Java]'))">
    35           <xsl:if test="not(contains(@name, '[Compare'))">
    36               <xsl:value-of select="@name"/>
    37               <xsl:text>,</xsl:text>
    38           </xsl:if>
    39         </xsl:if>
    40       </xsl:if>
    41     </xsl:template>
    42 
    43     <xsl:template match="testcase" mode="value">
    44       <xsl:if test="contains(@name,'tenThousand')">
    45         <xsl:if test="not(contains(@name, '[Java]'))">
    46           <xsl:if test="not(contains(@name, '[Compare'))">
    47             <xsl:value-of select="@time"/>
    48             <xsl:text>,</xsl:text>
    49           </xsl:if>
    50         </xsl:if>
    51       </xsl:if>
    52     </xsl:template>
    53 
    54 </xsl:stylesheet>