I used (the equivalent of) isspace() in the Go example and !isalnum()
in the Vala example.
I now use the same (isspace()) is both examples, the result is now identical:
except for the execution speed : The factor 2 remains the same
Serge.
Go:
serge2$ time ./go_test
(77850,the)
(58730,an
Why there are different results in this comparison?
On Tue, Jun 7, 2011 at 9:48 PM, Serge Hulne wrote:
> The test consisted in determining the words with the highest occurrence
> frequency in Shakespeare' s complete work.
>
> Here is the result:
>
> The resp. codes are attached herewith.
>
> IMH
> IMHO there isn't a significant difference.
> [...]
> 1) Vala :
> real 0m1.756s
> [...]
> 2 ) Go:
> real 0m3.708s
2x isn't a significant difference?
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
The test consisted in determining the words with the highest occurrence
frequency in Shakespeare' s complete work.
Here is the result:
The resp. codes are attached herewith.
IMHO there isn't a significant difference.
Serge.
1) Vala :
--
localhost$:test_1 serge2$ time ./vwc ../../sha