Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tapis CLI commands seems slower than their Bash analogues #189

Open
mwvaughn opened this issue Oct 3, 2019 · 1 comment
Open

Tapis CLI commands seems slower than their Bash analogues #189

mwvaughn opened this issue Oct 3, 2019 · 1 comment
Labels
priority.low Have you nothing else to do?
Milestone

Comments

@mwvaughn
Copy link
Contributor

mwvaughn commented Oct 3, 2019

Describe the bug
Several Tapis CLI commands appear take longer to run (or return a response) than their Bash analogues. See the table below. Times are in seconds and are the aggregate of 5 measurements.

Command Tapis CLI Bash CLI
apps-list -l 10 1.56+/-0.22 0.54+/-0.08
systems-list -l 10 1.42+/-0.05 0.45+/-0.13
jobs-list -l 10 2.03+/-0.05 0.95+/-0.09
metadata-list -l 10 1.33+/-0.07 0.43+/-0.09
@mwvaughn mwvaughn added the priority.low Have you nothing else to do? label Oct 3, 2019
@mwvaughn
Copy link
Contributor Author

mwvaughn commented Oct 3, 2019

There are a couple of potential sources of overhead. First, Tapis CLI proactively refreshes its token on startup. Second, it is using the built-in Python JSON parser, which may be slower than either jq or the custom JSON parser written in Bash.

It should be possible to test the first possibility by passing a pre-created token via --token which bypasses the refresh. It might be possible to test the second by replacing the built-in JSON parser with a known more performant alternative.

@mwvaughn mwvaughn modified the milestones: Release 1.0, Release 1.1 Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.low Have you nothing else to do?
Projects
None yet
Development

No branches or pull requests

1 participant