Re: [Vala] Text-processing performance test : Vala vs Go
- From: Serge Hulne <serge hulne gmail com>
- To: Dmitry Romanov <romanovda gmail com>, vala-list gnome org
- Subject: Re: [Vala] Text-processing performance test : Vala vs Go
- Date: Wed, 8 Jun 2011 20:21:09 +0200
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,and)
(54400,I)
(52150,of)
(48750,to)
(39590,a)
(34340,you)
(29510,in)
(28010,my)
(25150,is)
(22220,that)
real 0m3.698s
user 0m3.636s
sys 0m0.039s
Vala:
------
serge2$ time ./vwc ../../shakespeare.txt
(77850, 'the')
(58730, 'and')
(54400, 'I')
(52150, 'of')
(48750, 'to')
(39590, 'a')
(34340, 'you')
(29510, 'in')
(28010, 'my')
(25150, 'is')
(22220, 'that')
real 0m1.888s
user 0m1.822s
sys 0m0.039s
On Wed, Jun 8, 2011 at 2:35 PM, Dmitry Romanov <romanovda gmail com> wrote:
Why there are different results in this comparison?
On Tue, Jun 7, 2011 at 9:48 PM, Serge Hulne <serge hulne gmail com> wrote:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]