Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Weird problem with nested functions in Mata


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Weird problem with nested functions in Mata
Date   Fri, 14 Apr 2006 13:44:19 -0400

I tried out your do file and also find the alternating pattern of timings :
0: 1.67
1: 2.61
2: 1.64
3: 2.42
4: 1.69
5: 2.47
6: 1.69

I'm using an AMD Athlon XP 2700+ (2.17 GHz) running Win XP Pro SP2 with Stata/SE 9.1. I have no idea about the issues behind this timing pattern, but I was encouraged to see that my nearly 3 year old PC is looking fairly fast compared to the other machines tested. I was also a little surprised to see how much of a performance hit there is to run Stata GUI on Linux.

Michael Blasnik
michael.blasnik@verizon.net

----- Original Message ----- From: "Ben Jann" <ben.jann@soz.gess.ethz.ch>
To: <statalist@hsphsun2.harvard.edu>
Sent: Thursday, April 13, 2006 4:21 PM
Subject: RE: st: Weird problem with nested functions in Mata



I assume that there is a problem with my computer or OS.
I'll check using another machine.
Here are some timings (the script can be found below):

L  (a)   (b)   (c)   (d)   (e)   (f)   (g)   (h)    (i)   (j)
0  2.21  1.80  2.12  1.94  2.02  3.71  1.49  11.50  3.28  2.34
1  3.68  3.55  2.10  1.93  2.03  3.73  1.47  11.50  3.29  2.36
2  2.18  1.79  2.10  1.93  2.02  3.73  1.46  11.51  5.08  2.33
3  3.64  3.96  2.10  1.90  2.02  3.75  1.47  11.42  3.45  2.34
4  2.19  1.80  2.10  1.91  2.03  3.73  1.50  11.34  3.30  2.35
5  3.92  3.01  2.83  2.63  2.70  3.84  1.48  11.34  3.28  2.34
6  2.19  1.80  2.10  1.91  2.02  3.94  1.50  11.34  3.31  2.34

Relative to L=0:
1  1.67  1.97  0.99  0.99  1.00  1.01  0.99  1.00   1.00  1.01
2  0.99  0.99  0.99  0.99  1.00  1.01  0.98  1.00   1.55  1.00
3  1.65  2.20  0.99  0.98  1.00  1.01  0.99  0.99   1.05  1.00
4  0.99  1.00  0.99  0.98  1.00  1.01  1.01  0.99   1.01  1.00
5  1.77  1.67  1.33  1.36  1.34  1.04  0.99  0.99   1.00  1.00
6  0.99  1.00  0.99  0.98  1.00  1.06  1.01  0.99   1.01  1.00

L = level of nesting

Processor and OS:
(a) Intel Centrino 1.3Ghz, Win XP SP2
(b) Intel Centrino 1.6Ghz, Win XP SP2
(c) Intel Pentium 4 3.0GHz, Win XP SP2
(d) Intel Pentium 4 3.8GHz, Win XP SP2
(e) Intel Xenon (dual) 3.3GHz, Win Server 2003 SP1
(f) PowerBook G4 1 GHz, Mac OS X 10.4.6
(g) xServe G5 (dual) 2.3 GHz, Mac OS X 10.4.5
(h) Sun Enterprise Server 450 (4 CPU), Solaris 9
(i) Intel Pentium 4 2.66GHz, Linux, Stata GUI
(j) Intel Pentium 4 2.66GHz, Linux, Stata Console

Stata:
(a-e) Stata/SE 9.1 for Windows
(f) Stata/SE 9.1 for Macintosh
(g-i) Stata/SE 9.1 for Unix
(j) Intercooled Stata 9.0 for Unix


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index