We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0aef0 commit 7b016e6Copy full SHA for 7b016e6
tests/bench_bgra2rgb.py
@@ -6,23 +6,23 @@
6
7
8
GNU/Linux
9
- pil_frombytes_rgb 51
10
pil_frombytes 139
11
mss_rgb 119
+ pil_frombytes_rgb 51
12
numpy_flip 31
13
numpy_slice 29
14
15
macOS
16
- pil_frombytes_rgb 113
17
pil_frombytes 209
18
mss_rgb 174
+ pil_frombytes_rgb 113
19
numpy_flip 39
20
numpy_slice 36
21
22
Windows
23
- pil_frombytes_rgb 42
24
pil_frombytes 81
25
mss_rgb 66
+ pil_frombytes_rgb 42
26
numpy_flip 25
27
numpy_slice 22
28
"""
@@ -61,9 +61,9 @@ def pil_frombytes(im):
61
def benchmark():
62
with mss.mss() as sct:
63
im = sct.grab(sct.monitors[0])
64
- for func in (pil_frombytes_rgb,
65
- pil_frombytes,
+ for func in (pil_frombytes,
66
mss_rgb,
+ pil_frombytes_rgb,
67
numpy_flip,
68
numpy_slice):
69
count = 0
0 commit comments