[ create a new paste ] login | about

Link: http://codepad.org/JOyh6dYd    [ raw code | fork ]

Plain Text, pasted on Aug 7:
E:\Stuff\dev\gildetector>C:\IronPython-2.7\ipy.exe gil_detector.py
2.7.0 (IronPython 2.7 (2.7.0.40) on .NET 4.0.30319.235)
<string>:1: RuntimeWarning: IronPython has no support for disabling the GC
# of threads: 1, took 0.0289917, effectively 1 cores
# of threads: 2, took 0.022995, effectively 2.52157 cores
# of threads: 3, took 0.0269928, effectively 3.22216 cores
# of threads: 4, took 0.0400009, effectively 2.89910 cores
# of threads: 5, took 0.0469971, effectively 3.08442 cores
Python is utilizing 3.2/4 cores
Rejoice! You're awesome!

E:\Stuff\dev\gildetector>C:\Python32-stackless\python gil_detector.py
3.2 Stackless 3.1b3 060516 (py3k, Feb 22 2011, 08:13:50) [MSC v.1500 32 bit (Int
el)]
# of threads: 1, took 0.0687243, effectively 1 cores
# of threads: 2, took 0.135429, effectively 1.01492 cores
Python is utilizing 1.0/4 cores
Sadly, you have a GIL.

E:\Stuff\dev\gildetector>c:\python25\python gil_detector.py
2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
# of threads: 1, took 0.0465221, effectively 1 cores
# of threads: 2, took 0.166479, effectively 0.558895 cores
# of threads: 3, took 0.573193, effectively 0.243489 cores
# of threads: 4, took 0.723058, effectively 0.257363 cores
Python is utilizing 0.6/4 cores
Sadly, you have a GIL.

E:\Stuff\dev\gildetector>c:\python27\python gil_detector.py
2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]
# of threads: 1, took 0.0344299, effectively 1 cores
# of threads: 2, took 0.419794, effectively 0.164033 cores
# of threads: 3, took 0.503317, effectively 0.205218 cores
# of threads: 4, took 0.685269, effectively 0.200972 cores
Python is utilizing 0.2/4 cores
Sadly, you have a GIL.

E:\Stuff\dev\gildetector>c:\python31\python gil_detector.py
3.1.3 (r313:86834, Nov 27 2010, 18:30:53) [MSC v.1500 32 bit (Intel)]
# of threads: 1, took 0.0640787, effectively 1 cores
# of threads: 2, took 0.493665, effectively 0.259604 cores
# of threads: 3, took 0.661998, effectively 0.290387 cores
# of threads: 4, took 0.837459, effectively 0.306062 cores
Python is utilizing 0.3/4 cores
Sadly, you have a GIL.

E:\Stuff\dev\gildetector>c:\python32\python gil_detector.py
3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)]
# of threads: 1, took 0.0615275, effectively 1 cores
# of threads: 2, took 0.122254, effectively 1.00655 cores
Python is utilizing 1.0/4 cores
Sadly, you have a GIL.

E:\Stuff\dev\gildetector>C:\pypy-1.5.0a0-win32\pypy.exe gil_detector.py
2.7.1 (aefc70438132+, Apr 29 2011, 12:45:42)
[PyPy 1.5.0-alpha0 with MSC v.1600 32 bit]
# of threads: 1, took 0.00397246, effectively 1 cores
# of threads: 2, took 0.00786006, effectively 1.0108 cores
Python is utilizing 1.0/4 cores
Sadly, you have a GIL.

E:\Stuff\dev\gildetector>cmd /c C:\jython2.5.2\jython.bat gil_detector.py
2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)]
# of threads: 1, took 0.121, effectively 1 cores
# of threads: 2, took 0.106, effectively 2.28302 cores
# of threads: 3, took 0.117, effectively 3.10256 cores
# of threads: 4, took 0.128, effectively 3.78125 cores
# of threads: 5, took 0.182, effectively 3.32418 cores
# of threads: 6, took 0.208, effectively 3.49039 cores
Python is utilizing 3.8/4 cores
Rejoice! You're awesome!


Create a new paste based on this one


Comments: