<?xml version="1.0" encoding="windows-1252"?>
<node id="554594" title="Re: Benchmarking Your Code" created="2006-06-10 02:43:21" updated="2006-06-09 22:43:21">
<type id="11">
note</type>
<author id="498628">
Sartak</author>
<data>
<field name="doctext">
&lt;p&gt;Interestingly, you used the &lt;code&gt;&lt;=&gt;&lt;/code&gt; operator to compare words. When a word (&lt;code&gt;[a-zA-Z]+&lt;/code&gt;) is numified, it becomes a numeric 0. So the results you're seeing are probably from &lt;code&gt;{0 &lt;=&gt; 0}&lt;/code&gt; being far faster than &lt;code&gt;{'mountain' cmp 'mountable'}&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Perhaps a better test would be the use of &lt;code&gt;&lt;=&gt;&lt;/code&gt; and &lt;code&gt;cmp&lt;/code&gt; on numbers?&lt;/p&gt;</field>
<field name="root_node">
8745</field>
<field name="parent_node">
8745</field>
</data>
</node>
