Skip to content

Conversation

@pmiettinen
Copy link
Contributor

@pmiettinen pmiettinen commented Mar 19, 2019

This is done on top of #656

And paired with swift-nav/piksi_tools#985

@pmiettinen pmiettinen force-pushed the pmiettinen/esd-1158-benchmark branch 16 times, most recently from a2b76e5 to a78c60f Compare March 20, 2019 14:04
@pmiettinen pmiettinen force-pushed the pmiettinen/esd-1158-benchmark branch 7 times, most recently from 2a15659 to 3a911a7 Compare April 11, 2019 12:15
@pmiettinen
Copy link
Contributor Author

travis.yml based approach seems cumbersome, investigate more tox related approach.

@pmiettinen pmiettinen force-pushed the pmiettinen/esd-1158-benchmark branch 2 times, most recently from fd3039c to 54f03c3 Compare April 15, 2019 10:40
@pmiettinen
Copy link
Contributor Author

Working locally. Some tune up TODO for docker cooperation.

@pmiettinen pmiettinen force-pushed the pmiettinen/esd-1158-benchmark branch from 36371b9 to 1e9ffeb Compare April 16, 2019 08:32
Will need to revisit this in other usages, this is probably more correct
behavior but we'll need to adjust users of this iterator to expect the
new behavior.
@pmiettinen pmiettinen force-pushed the pmiettinen/esd-1158-benchmark branch from 1e9ffeb to f24f1f9 Compare April 17, 2019 08:38
@pmiettinen pmiettinen changed the title [WIP] Automated Travis benchmark [ESD-1158] Automated Travis benchmark [ESD-1158] Apr 17, 2019
@pmiettinen
Copy link
Contributor Author

Based on the runs this far, the performance ratio threshold could be set somewhere around 1.8.

@pmiettinen pmiettinen requested a review from silverjam April 18, 2019 04:29
@@ -0,0 +1,49 @@
import cffi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prior to merging this we need to figure out how to get this module to generate itself automatically (for development), then build a compiled version for a PyPI wheel (this is optional, since it might be worthy of a whole separate PR to figure out to build and distribute this).

Copy link
Contributor Author

@pmiettinen pmiettinen May 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about a first phase remedy:

from sbp.jit import parse_float # effectively runs the script building the module `parse_float_c`
from sbp.jit import parse_float_c

Also note the additions to tox.ini so another possibility would be to add the requirement to run make python before usage but that would probably go unnoticed in quite a lot of cases.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pmiettinen that might work, as long as the import succeeds, hopefully this doesn't require the user to have write access to wherever sbp.jit.parse_float is installed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure the write access is required but I don't think this it matters at this phase as this solution is aimed only for development and the files shall reside under the repository? Do this now and later a better solution in a PR adding the sbp.jit package into the release PyPi package?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@pmiettinen pmiettinen merged commit 2d2d1f4 into master May 13, 2019
@pmiettinen pmiettinen deleted the pmiettinen/esd-1158-benchmark branch May 13, 2019 11:37
@pmiettinen pmiettinen restored the pmiettinen/esd-1158-benchmark branch May 13, 2019 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants