summaryrefslogtreecommitdiff
path: root/test/bench/k-nucleotide-parallel.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/bench/k-nucleotide-parallel.go')
-rw-r--r--test/bench/k-nucleotide-parallel.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/bench/k-nucleotide-parallel.go b/test/bench/k-nucleotide-parallel.go
index 0234f33d1..96c80d8f0 100644
--- a/test/bench/k-nucleotide-parallel.go
+++ b/test/bench/k-nucleotide-parallel.go
@@ -41,6 +41,7 @@ import (
"fmt"
"io/ioutil"
"os"
+ "runtime"
"sort"
)
@@ -97,6 +98,7 @@ func printKnucs(a kNucArray) {
}
func main() {
+ runtime.GOMAXPROCS(4)
in := bufio.NewReader(os.Stdin)
three := []byte(">THREE ")
for {