Skip to content

Commit ace1c13

Browse files
committed
Fix performance doctest output
1 parent 8415e3c commit ace1c13

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/user-guide/performance.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,13 @@ the time required to write an array with different values.::
168168
>>> for write_empty_chunks in (True, False):
169169
... full, empty = timed_write(write_empty_chunks)
170170
... print(f'\nwrite_empty_chunks={write_empty_chunks}:\n\tRandom Data: {full[0]:.4f}s, {full[1]} objects stored\n\t Empty Data: {empty[0]:.4f}s, {empty[1]} objects stored\n')
171-
172171
write_empty_chunks=True:
173-
Random Data: 0.2044s, 1024 objects stored
174-
Empty Data: 0.2036s, 1024 objects stored
172+
Random Data: ..., 1024 objects stored
173+
Empty Data: ...s, 1024 objects stored
175174
<BLANKLINE>
176-
177175
write_empty_chunks=False:
178-
Random Data: 0.2279s, 1024 objects stored
179-
Empty Data: 0.1767s, 0 objects stored
176+
Random Data: ...s, 1024 objects stored
177+
Empty Data: ...s, 0 objects stored
180178
<BLANKLINE>
181179

182180
In this example, writing random data is slightly slower with ``write_empty_chunks=True``,

0 commit comments

Comments
 (0)