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 ../../shakespeare.txt (78160, 'the') (60630, 'I') (60120, 'and') (52830, 'of') (51300, 'to') (43660, 'you') (40500, 'a') (30960, 'in') (28100, 'my') (26860, 'is') (24440, 'that') real 0m1.756s user 0m1.698s sys 0m0.042s 2 ) Go: ---------- localhost$:test_1 serge2$ time ./go_test (77850,the) (58730,and) (54400,I) (52150,of) (48750,to) (39590,a) (34340,you) (29510,in) (28010,my) (25150,is) real 0m3.708s user 0m3.640s sys 0m0.041s
Attachment:
go_test.go
Description: Binary data
Attachment:
vwc.vala
Description: Binary data