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