After some years of not upgrading from Stata 15 (MP 2), I was planning to move to version 19 while continuing with a 2 processor version, but in an idle moment I decided to compare performance with 1 processor vs. 2. One of my main desires for speed is while using -bootstrap-, so I tried this:
To my surprise, there was almost no difference with 1 processor vs. 2 (about 10 sec. for the above on my machine). With a larger data set (-expand 100-), -set processor 2- was only about 20% faster. The relative difference was similar when I did a -logit- rather than -regress-
This makes me wonder if I get much benefit by continuing with a 2 processor version of Stata 19.
Some thoughts:
1) Perhaps -bootstrap- is just not the sort of command that benefits from multiple processors?
2) Perhaps -set processor 1- vs. 2 doesn't reveal the advantages of a two processor version as would actually running Stata SE vs. say MP 2?
3) Maybe something here is peculiar to my machine (Windows with 12 cores)?
I'd like to hear what others' experience and perspective on this would be as regards the advantages of a multiple vs. single core Stata version.
Code:
sysuse auto, clear expand 10 quiet replace price = price + rnormal(0,100) set processor 2 // or 1 timer clear 1 timer on 1 bootstrap _b, reps(5000) nodots: regress price headroom weight length turn timer off 1 timer list 1
This makes me wonder if I get much benefit by continuing with a 2 processor version of Stata 19.
Some thoughts:
1) Perhaps -bootstrap- is just not the sort of command that benefits from multiple processors?
2) Perhaps -set processor 1- vs. 2 doesn't reveal the advantages of a two processor version as would actually running Stata SE vs. say MP 2?
3) Maybe something here is peculiar to my machine (Windows with 12 cores)?
I'd like to hear what others' experience and perspective on this would be as regards the advantages of a multiple vs. single core Stata version.
Comment