[pypy-issue] Issue #2187: Slow writing bytearray to file (pypy/pypy)

ibrkanac issues-reply at bitbucket.org
Wed Nov 11 06:15:36 EST 2015


New issue 2187: Slow writing bytearray to file
https://bitbucket.org/pypy/pypy/issues/2187/slow-writing-bytearray-to-file

ibrkanac:

he is result on osx

```
#!bash

~/D/P/m/a/app » pypy -mtimeit -s 'k = open("write", "wb")'  'k.write(bytearray(2048))'
100000 loops, best of 3: 16 usec per loop
~/D/P/m/a/app » python -mtimeit -s 'k = open("write", "wb")'  'k.write(bytearray(2048))'
100000 loops, best of 3: 5.69 usec per loop
```


```
#!bash

~/D/P/m/a/app » pypy
Python 2.7.10 (850edf14b2c75573720f59e95767335fb1affe55, Oct 30 2015, 00:18:27)
[PyPy 4.0.0 with GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>>
```

```
#!bash

~/D/P/m/a/app » python
Python 2.7.10 (default, Sep 23 2015, 04:34:03)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
```

alslo readinto bytearray is alwo slower on pypy then in python




More information about the pypy-issue mailing list