cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
jsza has quit [Quit: Connection closed for inactivity]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
antocuni_ has quit [Ping timeout: 256 seconds]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 244 seconds]
TheAdversary has quit [Ping timeout: 240 seconds]
Hasimir has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Quit: WeeChat 2.2]
antocuni_ has joined #pypy
antocuni_ has quit [Ping timeout: 260 seconds]
ceridwen has quit [Read error: Connection reset by peer]
ceridwen has joined #pypy
ceridwen has joined #pypy
ceridwen has quit [Changing host]
dddddd has quit [Remote host closed the connection]
lritter has joined #pypy
inhahe has quit []
inhahe has joined #pypy
kenaan has quit [Ping timeout: 240 seconds]
lritter has quit [Remote host closed the connection]
jamesaxl has joined #pypy
glyph has quit [Quit: End of line.]
glyph has joined #pypy
Hasimir has joined #pypy
TheAdversary has joined #pypy
inhahe__ has quit [Ping timeout: 260 seconds]
inhahe__ has joined #pypy
jcea has joined #pypy
Wulf has joined #pypy
<Wulf> Hello. Is hashlib very very slow? It appears to take 100 times as much as cpython
<Wulf> time pypy3 -c 'import sys, hashlib; print(hashlib.sha256(sys.stdin.buffer.read()).hexdigest())' < bigfile
<Wulf> takes about 1 second per megabyte
<LarstiQ> Wulf: you're timing startup + io there
<Wulf> LarstiQ: that's not the issue here.
<LarstiQ> big enough file? okay
<LarstiQ> Wulf: you can still separate the io from hashlib?
<LarstiQ> (io is, iirc, still known to have slower cases than cpython)
<Wulf> LarstiQ: it's not an io problem.
<Wulf> LarstiQ: also if I use sha1 or md5, the speed is much better.
<Wulf> pypy3 -c 'import sys, hashlib, time; data = sys.stdin.buffer.read(); t0 = time.time(); h = hashlib.sha256(data); t1 = time.time(); print(t1 - t0)' < bigfile
<LarstiQ> how much better?
<Wulf> 46x faster
<LarstiQ> so ~0.5 cpython speed?
<LarstiQ> also, which version of pypy3, and have you tried pypy2?
<LarstiQ> Wulf: if you've narrowed it down to 'current pypy{3,} hashlib.sha256 is slow', that sounds good enough for a bugreport
Gonsor has joined #pypy
<Wulf> with sha1, cpython is about 19x faster. with sha256, cpython is about 411 times faster
<LarstiQ> Wulf: pypy3 is also, iirc, known slower than pypy2
dddddd has joined #pypy
<Wulf> but that much slower?
<LarstiQ> quite possibly, but it's easy to confirm whether that is the case or not
* LarstiQ off
antocuni has joined #pypy
antocuni has quit [Ping timeout: 260 seconds]
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
Wulf has quit [Ping timeout: 248 seconds]
Gonsor has quit [Ping timeout: 265 seconds]
Gonsor has joined #pypy
nunatak has joined #pypy
adamholmberg has joined #pypy
nunatak has quit [Quit: Leaving]
redj has quit [Ping timeout: 268 seconds]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 268 seconds]
redj has joined #pypy
Wulf has joined #pypy
adamholmberg has joined #pypy
antocuni has joined #pypy
Gonsor has quit [Read error: Connection reset by peer]
danieljabailey has quit [Quit: ZNC 1.6.5+deb2build2 - http://znc.in]
danieljabailey has joined #pypy
jamesaxl has quit [Quit: WeeChat 2.2]
DIRT has joined #pypy