parsing_times_%_candidates.txt: parsing_times.sh stats_candidates.txt
@echo "Collecting parsing times in CICXML_NOBLANKS_NODTD for $(@:parsing_times_%_candidates.txt=%)..."
- @./$< CICXML_NOBLANKS_NODTD parsing_time_$(@:parsing_times_%_candidates.txt=%).sh stats_candidates.txt | $(SORT_SIZE) >$@
+ @./$< CICXML_NOBLANKS_NODTD parsing_time_$(@:parsing_times_%_candidates.txt=%).sh stats_candidates.txt | $(SORT_NODES) >$@
parsing_times_%_candidates_c1.txt: parsing_times.sh stats_candidates_c1.txt
@echo "Collecting parsing times in CONTENTNB for $(@:parsing_times_%_candidates_c1.txt=%)..."
- @./$< CONTENTNB parsing_time_$(@:parsing_times_%_candidates_c1.txt=%).sh stats_candidates_c1.txt | $(SORT_SIZE) >$@
+ @./$< CONTENTNB parsing_time_$(@:parsing_times_%_candidates_c1.txt=%).sh stats_candidates_c1.txt | $(SORT_NODES) >$@
#parsing_times_%_candidates: parsing_times_%_candidates.sh
# sh $< >$@
clean:
rm -f stats_candidates*.{xml,html,txt} \
$(PARSING_TIMES_TARGETS_TXT) \
+ $(PARSING_VALIDATING_TIMES_TARGETS_TXT) \
$(VALIDATING_TIMES_TARGETS_TXT)
<xsl:value-of select="size"/>
<xsl:text> </xsl:text>
<xsl:value-of select="number(elements/total) + number(text-nodes/total)"/>
- <!--<xsl:text> </xsl:text>
- <xsl:value-of select="depth/max"/>-->
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="depth/max"/>
<xsl:text>
</xsl:text>
</xsl:template>
{
std::ifstream f(argv[1]);
- int size, nodes, parsing_time;
- int size1, nodes1, validating_time;
+ int size, nodes, depth, parsing_time;
+ int size1, nodes1, depth1, validating_time;
while (std::cin >> size) {
std::cin >> nodes;
+ std::cin >> depth;
std::cin >> parsing_time;
f >> size1;
f >> nodes1;
+ f >> depth1;
f >> validating_time;
assert(size == size1);
assert(nodes == nodes1);
- std::cout << size << " " << nodes << " " << (validating_time - parsing_time) << std::endl;
+ assert(depth == depth1);
+ std::cout << size << " " << nodes << " " << depth << " " << (validating_time - parsing_time) << std::endl;
}
}
#!/bin/sh
TIME=`zcat $1 | ./parse/parse_expat`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
#!/bin/sh
TIME=`zcat $1 | ./parse/parse_xmlreader`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
#!/bin/sh
TIME=`zcat $1 | ./parse/parse_xmlsax`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
#!/bin/sh
zcat $1 >/tmp/a
TIME=`./parse/parse_xmltree /tmp/a`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
#!/bin/sh
zcat $1 >/tmp/a
TIME=`./parse/SAX2Print/SAX2Print -v=never /tmp/a`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
#!/bin/sh
zcat $1 >/tmp/a
TIME=`./parse/DOMCount/DOMCount -v=never /tmp/a`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
set label font "Helvetica,8"
set output "parsing_times_candidates.ps"
-plot "parsing_times_expat_candidates.txt" using 1:3 title "Expat" with lines, \
- "parsing_times_xerces_sax2_candidates.txt" using 1:3 title "xerces sax2" with lines, \
- "parsing_times_xerces_tree_candidates.txt" using 1:3 title "xerces tree" with lines, \
- "parsing_times_libxml2_sax2_candidates.txt" using 1:3 title "libxml2 sax2" with lines, \
- "parsing_times_libxml2_reader_candidates.txt" using 1:3 title "libxml2 reader" with lines, \
- "parsing_times_libxml2_tree_candidates.txt" using 1:3 title "libxml2 tree" with lines
+plot "parsing_times_expat_candidates.txt" using 2:4 title "Expat" with lines smooth bezier, \
+ "parsing_times_xerces_sax2_candidates.txt" using 2:4 title "xerces sax2" with lines smooth bezier, \
+ "parsing_times_xerces_tree_candidates.txt" using 2:4 title "xerces tree" with lines smooth bezier, \
+ "parsing_times_libxml2_sax2_candidates.txt" using 2:4 title "libxml2 sax2" with lines smooth bezier, \
+ "parsing_times_libxml2_reader_candidates.txt" using 2:4 title "libxml2 reader" with lines smooth bezier, \
+ "parsing_times_libxml2_tree_candidates.txt" using 2:4 title "libxml2 tree" with lines smooth bezier
set output "parsing_times_candidates_c1.ps"
-plot "parsing_times_expat_candidates_c1.txt" using 1:3 title "Expat" with lines, \
- "parsing_times_xerces_sax2_candidates_c1.txt" using 1:3 title "xerces sax2" with lines, \
- "parsing_times_xerces_tree_candidates_c1.txt" using 1:3 title "xerces tree" with lines, \
- "parsing_times_libxml2_sax2_candidates_c1.txt" using 1:3 title "libxml2 sax2" with lines, \
- "parsing_times_libxml2_reader_candidates_c1.txt" using 1:3 title "libxml2 reader" with lines, \
- "parsing_times_libxml2_tree_candidates_c1.txt" using 1:3 title "libxml2 tree" with lines
+plot "parsing_times_expat_candidates_c1.txt" using 2:4 title "Expat" with lines smooth bezier, \
+ "parsing_times_xerces_sax2_candidates_c1.txt" using 2:4 title "xerces sax2" with lines smooth bezier, \
+ "parsing_times_xerces_tree_candidates_c1.txt" using 2:4 title "xerces tree" with lines smooth bezier, \
+ "parsing_times_libxml2_sax2_candidates_c1.txt" using 2:4 title "libxml2 sax2" with lines smooth bezier, \
+ "parsing_times_libxml2_reader_candidates_c1.txt" using 2:4 title "libxml2 reader" with lines smooth bezier, \
+ "parsing_times_libxml2_tree_candidates_c1.txt" using 2:4 title "libxml2 tree" with lines smooth bezier
set output "parsing_times_candidates_3d.ps"
-splot "parsing_times_expat_candidates.txt" title "Expat", \
- "parsing_times_xerces_sax2_candidates.txt" title "xerces sax2", \
- "parsing_times_xerces_tree_candidates.txt" title "xerces tree", \
- "parsing_times_libxml2_sax2_candidates.txt" title "libxml2 sax2", \
- "parsing_times_libxml2_reader_candidates.txt" title "libxml2 reader", \
- "parsing_times_libxml2_tree_candidates.txt" title "libxml2 tree"
+splot "parsing_times_expat_candidates.txt" using 1:2:4 title "Expat", \
+ "parsing_times_xerces_sax2_candidates.txt" using 1:2:4 title "xerces sax2", \
+ "parsing_times_xerces_tree_candidates.txt" using 1:2:4 title "xerces tree", \
+ "parsing_times_libxml2_sax2_candidates.txt" using 1:2:4 title "libxml2 sax2", \
+ "parsing_times_libxml2_reader_candidates.txt" using 1:2:4 title "libxml2 reader", \
+ "parsing_times_libxml2_tree_candidates.txt" using 1:2:4 title "libxml2 tree"
#!/bin/sh
zcat $1 >/tmp/a
TIME=`~lpadovan/Luca-CVS/Projects/flea/tests/cic /tmp/a`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
#!/bin/sh
TIME=`/usr/bin/xmllint --timing --valid --noout $1 2>&1 | fgrep "Parsing" | cut -d ' ' -f 3`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
zcat $1 >/tmp/a
cp /projects/helm/xml/dtd/cic.dtd /tmp
TIME=`./parse/SAX2Print/SAX2Print -v=always /tmp/a`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
zcat $1 >/tmp/a
cp /projects/helm/xml/dtd/cic.dtd /tmp
TIME=`./parse/DOMCount/DOMCount -v=always /tmp/a`
-echo `fgrep $1 $2 | cut -d ' ' -f 2,3`" "$TIME
+echo `fgrep $1 $2 | cut -d ' ' -f 2,3,4`" "$TIME
set label font "Helvetica,8"
set output "parsing_validating_times_candidates.ps"
-plot "parsing_validating_times_xerces_sax2_candidates.txt" using 2:3 title "xerces sax2 parse+validate" with lines smooth bezier, \
- "parsing_validating_times_xerces_tree_candidates.txt" using 2:3 title "xerces tree parse+validate" with lines smooth bezier, \
- "parsing_validating_times_libxml2_tree_candidates.txt" using 2:3 title "libxml2 tree parse+validate" with lines smooth bezier, \
- "parsing_validating_times_flea_candidates.txt" using 2:3 title "flea parse+validate" with lines smooth bezier
+plot "parsing_validating_times_xerces_sax2_candidates.txt" using 2:4 title "xerces sax2 parse+validate" with lines smooth bezier, \
+ "parsing_validating_times_xerces_tree_candidates.txt" using 2:4 title "xerces tree parse+validate" with lines smooth bezier, \
+ "parsing_validating_times_libxml2_tree_candidates.txt" using 2:4 title "libxml2 tree parse+validate" with lines smooth bezier, \
+ "parsing_validating_times_flea_candidates.txt" using 2:4 title "flea parse+validate" with lines smooth bezier
set output "validating_times_candidates.ps"
-plot "validating_times_xerces_sax2_candidates.txt" using 2:3 title "xerces sax2 validate" with lines smooth bezier, \
- "validating_times_xerces_tree_candidates.txt" using 2:3 title "xerces tree validate" with lines smooth bezier, \
- "validating_times_libxml2_tree_candidates.txt" using 2:3 title "libxml2 tree validate" with lines smooth bezier, \
- "validating_times_flea_candidates.txt" using 2:3 title "flea validate" with lines smooth bezier
+plot "validating_times_xerces_sax2_candidates.txt" using 2:4 title "xerces sax2 validate" with lines smooth bezier, \
+ "validating_times_xerces_tree_candidates.txt" using 2:4 title "xerces tree validate" with lines smooth bezier, \
+ "validating_times_libxml2_tree_candidates.txt" using 2:4 title "libxml2 tree validate" with lines smooth bezier, \
+ "validating_times_flea_candidates.txt" using 2:4 title "flea validate" with lines smooth bezier