<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/tests/bench, branch master</title>
<subtitle>MicroPython source and hardware configuration for OpenMano</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/'/>
<entry>
<title>tests: Rename "bench" tests to "internal_bench" and run-internalbench.py</title>
<updated>2019-06-28T06:28:59+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2019-06-18T13:44:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=d86fb670e6d78ca38dbaedfdde35180e3b8f4bb3'/>
<id>d86fb670e6d78ca38dbaedfdde35180e3b8f4bb3</id>
<content type='text'>
To emphasise these benchmark tests compare the internal performance of
features amongst themselves, rather than absolute performance testing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To emphasise these benchmark tests compare the internal performance of
features amongst themselves, rather than absolute performance testing.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/bench: Add testcase to compare bytes(N) vs b"\0" * N.</title>
<updated>2016-06-08T11:28:18+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-06-08T11:28:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=e918fc5e37c72d864dc369e9b9112dfa21537667'/>
<id>e918fc5e37c72d864dc369e9b9112dfa21537667</id>
<content type='text'>
Based on python-dev discussion regarding PEP467.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on python-dev discussion regarding PEP467.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Update for _io/_collections module having been renamed.</title>
<updated>2016-05-02T11:15:11+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-05-02T11:15:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=8c35f3979c38bc8a29a22e7a61d33f87ff856124'/>
<id>8c35f3979c38bc8a29a22e7a61d33f87ff856124</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>py: Use sequence of strings for named tuple initialization</title>
<updated>2015-01-01T12:53:23+00:00</updated>
<author>
<name>stijn</name>
</author>
<published>2014-12-20T15:37:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=12340147b0ace7c1feeaf36b618c92652bdb849f'/>
<id>12340147b0ace7c1feeaf36b618c92652bdb849f</id>
<content type='text'>
- remove single string initialization style
- take list of strings instead
- store list in the type for fast lookup
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- remove single string initialization style
- take list of strings instead
- store list in the type for fast lookup
</pre>
</div>
</content>
</entry>
<entry>
<title>bench: Three ways to process a byte buffer.</title>
<updated>2014-06-19T19:27:13+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2014-06-19T19:27:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=74c710187c77ebd5ab8c5a44b07087f2c2ca786e'/>
<id>74c710187c77ebd5ab8c5a44b07087f2c2ca786e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bench: Add test for map() vs inplace operations in array-likes.</title>
<updated>2014-06-19T19:19:24+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2014-06-19T18:54:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=59ced651b542941f893293099a932252e498eb7c'/>
<id>59ced651b542941f893293099a932252e498eb7c</id>
<content type='text'>
map() is 5 times slower. That's mostly because of inefficiency of creating
containers from iterables of unknown length (like map()).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
map() is 5 times slower. That's mostly because of inefficiency of creating
containers from iterables of unknown length (like map()).
</pre>
</div>
</content>
</entry>
<entry>
<title>bench: Add tests for constructing various containers from iterator.</title>
<updated>2014-06-19T18:44:33+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2014-06-19T18:44:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=17db09650569609793061e83aded7039e39e81a7'/>
<id>17db09650569609793061e83aded7039e39e81a7</id>
<content type='text'>
Both "bound" (like, length known) and "unbound" (length unknown) are tested.
All of list, tuple, bytes, bytesarray offer approximately the same
performance, with "unbound" case being 30 times slower.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both "bound" (like, length known) and "unbound" (length unknown) are tested.
All of list, tuple, bytes, bytesarray offer approximately the same
performance, with "unbound" case being 30 times slower.
</pre>
</div>
</content>
</entry>
<entry>
<title>bench: Add test for function call overhead.</title>
<updated>2014-06-19T17:49:03+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2014-06-19T00:20:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=e53d2197e4a749b2e2265c7b42f9b9834128799f'/>
<id>e53d2197e4a749b2e2265c7b42f9b9834128799f</id>
<content type='text'>
For a trivial operation, calling a function is 5 times slower than doing
operation inline.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For a trivial operation, calling a function is 5 times slower than doing
operation inline.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/bench: Add testcase for positional/kwargs to enumerate().</title>
<updated>2014-05-07T19:34:06+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2014-05-07T19:07:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=69cbec4afb3ac191334f0cfc5bfa14b2cdefea4c'/>
<id>69cbec4afb3ac191334f0cfc5bfa14b2cdefea4c</id>
<content type='text'>
Inspired by discussion in #577. So, in this case of builtin function,
passing args by keyword has less than 1% overhead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Inspired by discussion in #577. So, in this case of builtin function,
passing args by keyword has less than 1% overhead.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/bench: Add tests for various ways to pass function args.</title>
<updated>2014-05-07T19:34:04+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2014-05-07T18:39:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=2a05f05f4468bc937e412e94df75da9dce9a6148'/>
<id>2a05f05f4468bc937e412e94df75da9dce9a6148</id>
<content type='text'>
Passing 3 args with keywords is for example 50% slower than via positional
args.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Passing 3 args with keywords is for example 50% slower than via positional
args.
</pre>
</div>
</content>
</entry>
</feed>
