jameslz / benchmark

Bioinformatics scripts
5 stars 3 forks source link

adding golang version #2

Closed shenwei356 closed 9 years ago

shenwei356 commented 9 years ago

Golang version seems faster than C version

jameslz commented 9 years ago

go build best_hsp.go

time best_hsp_go example_blast6out.tsv 1e-6 60 >go_res.tsv

real 0m6.695s user 0m6.319s sys 0m0.786s

time best_hsp_c example_blast6out.tsv 1e-6 60 >C_res.tsv

real 0m1.616s user 0m1.385s sys 0m0.232s

time k8 best_hsp.js example_blast6out.tsv 1e-6 60 >js_res.tsv

real 0m3.602s user 0m2.838s sys 0m0.829s