2018-02-26 15:52
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
00:08
jsza has quit [Quit: Connection closed for inactivity]
00:25
adamholmberg has quit [Remote host closed the connection]
00:25
adamholmberg has joined #pypy
00:26
antocuni_ has quit [Ping timeout: 256 seconds]
01:03
adamholmberg has quit [Remote host closed the connection]
01:04
adamholmberg has joined #pypy
01:08
adamholmberg has quit [Ping timeout: 244 seconds]
01:45
TheAdversary has quit [Ping timeout: 240 seconds]
01:46
Hasimir has quit [Ping timeout: 240 seconds]
01:54
jamesaxl has quit [Quit: WeeChat 2.2]
02:36
antocuni_ has joined #pypy
03:54
antocuni_ has quit [Ping timeout: 260 seconds]
05:15
ceridwen has quit [Read error: Connection reset by peer]
05:21
ceridwen has joined #pypy
05:21
ceridwen has joined #pypy
05:21
ceridwen has quit [Changing host]
06:22
dddddd has quit [Remote host closed the connection]
06:26
lritter has joined #pypy
07:05
inhahe has joined #pypy
08:02
kenaan has quit [Ping timeout: 240 seconds]
08:51
lritter has quit [Remote host closed the connection]
09:02
jamesaxl has joined #pypy
09:15
glyph has quit [Quit: End of line.]
09:17
glyph has joined #pypy
09:44
Hasimir has joined #pypy
09:56
TheAdversary has joined #pypy
10:12
inhahe__ has quit [Ping timeout: 260 seconds]
10:35
inhahe__ has joined #pypy
11:26
jcea has joined #pypy
11:26
Wulf has joined #pypy
11:27
<
Wulf >
Hello. Is hashlib very very slow? It appears to take 100 times as much as cpython
11:31
<
Wulf >
time pypy3 -c 'import sys, hashlib; print(hashlib.sha256(sys.stdin.buffer.read()).hexdigest())' < bigfile
11:31
<
Wulf >
takes about 1 second per megabyte
11:44
<
LarstiQ >
Wulf: you're timing startup + io there
11:44
<
Wulf >
LarstiQ: that's not the issue here.
11:45
<
LarstiQ >
big enough file? okay
11:45
<
LarstiQ >
Wulf: you can still separate the io from hashlib?
11:46
<
LarstiQ >
(io is, iirc, still known to have slower cases than cpython)
11:47
<
Wulf >
LarstiQ: it's not an io problem.
11:47
<
Wulf >
LarstiQ: also if I use sha1 or md5, the speed is much better.
11:48
<
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
11:48
<
LarstiQ >
how much better?
11:49
<
LarstiQ >
so ~0.5 cpython speed?
11:49
<
LarstiQ >
also, which version of pypy3, and have you tried pypy2?
11:50
<
LarstiQ >
Wulf: if you've narrowed it down to 'current pypy{3,} hashlib.sha256 is slow', that sounds good enough for a bugreport
11:51
Gonsor has joined #pypy
11:51
<
Wulf >
with sha1, cpython is about 19x faster. with sha256, cpython is about 411 times faster
11:53
<
LarstiQ >
Wulf: pypy3 is also, iirc, known slower than pypy2
11:53
dddddd has joined #pypy
11:54
<
Wulf >
but that much slower?
11:57
<
LarstiQ >
quite possibly, but it's easy to confirm whether that is the case or not
13:36
antocuni has joined #pypy
13:54
antocuni has quit [Ping timeout: 260 seconds]
15:59
Garen has quit [Read error: Connection reset by peer]
16:01
Garen has joined #pypy
16:49
Wulf has quit [Ping timeout: 248 seconds]
17:22
Gonsor has quit [Ping timeout: 265 seconds]
18:00
Gonsor has joined #pypy
18:02
nunatak has joined #pypy
20:34
adamholmberg has joined #pypy
20:45
nunatak has quit [Quit: Leaving]
20:50
redj has quit [Ping timeout: 268 seconds]
20:53
adamholmberg has quit [Remote host closed the connection]
20:54
adamholmberg has joined #pypy
20:58
adamholmberg has quit [Ping timeout: 268 seconds]
21:00
redj has joined #pypy
21:20
Wulf has joined #pypy
21:24
adamholmberg has joined #pypy
22:08
antocuni has joined #pypy
22:30
Gonsor has quit [Read error: Connection reset by peer]
23:00
danieljabailey has joined #pypy
23:04
jamesaxl has quit [Quit: WeeChat 2.2]
23:27
DIRT has joined #pypy