Re: Python on FreeBSD is slower than on Linux

2015-11-19 Thread Roland Smith
On Thu, Nov 12, 2015 at 10:26:22PM +0300, Vladimir Bogrecov wrote: > Hello, > > I'm developing a little project on Python 3.5. The server's operating > system is FreeBSD 10.2. Today I decided to do a little test "just for fun" > and the result has confused me. I ran the following code > > import

Re: Python on FreeBSD is slower than on Linux

2015-11-13 Thread John-Mark Gurney
Alfred Perlstein wrote this message on Thu, Nov 12, 2015 at 11:35 -0800: > I'm adding Freebsd-virtualization to this thread as both problems point > to some possible issue with FreeBSD as a guest. (although a bare metal > comparison should likely be done as well). This could simply be a python

Re: Python on FreeBSD is slower than on Linux

2015-11-13 Thread Alfred Perlstein
On 11/13/15 12:01 AM, Baptiste Daroussin wrote: I'm kind of surprised given the number of pythonic people we have that no one has had a look at how python perform on FreeBSD and how things are implemented in the python VM to help them. Bapt Did this recently in a few places however not in thi

Re: Python on FreeBSD is slower than on Linux

2015-11-13 Thread Alfred Perlstein
On 11/12/15 12:40 PM, Philip M. Gollucci wrote: Most likely its /dev/random or gettimeofday being slow which have nothing to do with Python. Urm... so like if FreeBSD's getpid was 100x slower than Linux's then what exactly would it be? If FreeBSD's implementation is needlessly precise (and

Re: Python on FreeBSD is slower than on Linux

2015-11-13 Thread Alfred Perlstein
Vladimir , Please run truss(1) against the python code and paste a subset here. Maybe it is doing many semaphore ops. Sent from my iPhone > On Nov 13, 2015, at 12:49 AM, Mark Blackman wrote: > > Vladimir ___ freebsd-python@freebsd.org mailing list

Re: Python on FreeBSD is slower than on Linux

2015-11-13 Thread Mark Blackman
> On 13 Nov 2015, at 08:08, Mark Blackman wrote: > >> On 12 Nov 2015, at 19:35, Alfred Perlstein wrote: >> >> I'm adding Freebsd-virtualization to this thread as both problems point to >> some possible issue with FreeBSD as a guest. (although a bare metal >> comparison should likely be don

Re: Python on FreeBSD is slower than on Linux

2015-11-13 Thread Konstantin Belousov
On Fri, Nov 13, 2015 at 09:01:57AM +0100, Baptiste Daroussin wrote: > On Fri, Nov 13, 2015 at 12:36:29PM +1100, Kubilay Kocak wrote: > > On 13/11/2015 6:26 AM, Vladimir Bogrecov wrote: > > > Hello, > > > > > > I'm developing a little project on Python 3.5. The server's operating > > > system is Fr

Re: Python on FreeBSD is slower than on Linux

2015-11-13 Thread Mark Blackman
On 12 Nov 2015, at 19:35, Alfred Perlstein wrote: > > I'm adding Freebsd-virtualization to this thread as both problems point to > some possible issue with FreeBSD as a guest. (although a bare metal > comparison should likely be done as well). > > -Alfred > >> On 11/12/15 11:26 AM, Vladimir

Re: Python on FreeBSD is slower than on Linux

2015-11-13 Thread Baptiste Daroussin
On Fri, Nov 13, 2015 at 12:36:29PM +1100, Kubilay Kocak wrote: > On 13/11/2015 6:26 AM, Vladimir Bogrecov wrote: > > Hello, > > > > I'm developing a little project on Python 3.5. The server's operating > > system is FreeBSD 10.2. Today I decided to do a little test "just for fun" > > and the resul

Re: Python on FreeBSD is slower than on Linux

2015-11-12 Thread Kubilay Kocak
On 13/11/2015 6:26 AM, Vladimir Bogrecov wrote: > Hello, > > I'm developing a little project on Python 3.5. The server's operating > system is FreeBSD 10.2. Today I decided to do a little test "just for fun" > and the result has confused me. I ran the following code > > import random > import tim

Re: Python on FreeBSD is slower than on Linux

2015-11-12 Thread Philip M. Gollucci
Most likely its /dev/random or gettimeofday being slow which have nothing to do with Python. On Thursday, November 12, 2015, Vladimir Bogrecov wrote: > Hello, > > I'm developing a little project on Python 3.5. The server's operating > system is FreeBSD 10.2. Today I decided to do a little test "

Re: Python on FreeBSD is slower than on Linux

2015-11-12 Thread Alfred Perlstein
I'm adding Freebsd-virtualization to this thread as both problems point to some possible issue with FreeBSD as a guest. (although a bare metal comparison should likely be done as well). -Alfred On 11/12/15 11:26 AM, Vladimir Bogrecov wrote: Hello, I'm developing a little project on Python 3

Python on FreeBSD is slower than on Linux

2015-11-12 Thread Vladimir Bogrecov
Hello, I'm developing a little project on Python 3.5. The server's operating system is FreeBSD 10.2. Today I decided to do a little test "just for fun" and the result has confused me. I ran the following code import random import time def test_sort(size): sequence = [i for i in range(0, siz