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

Refactor test/operator.jl into functions as opposed to nested testsets #2285

Merged
merged 2 commits into from
Jul 16, 2020

Conversation

odow
Copy link
Member

@odow odow commented Jul 16, 2020

Benchmarks suggest a 40% reduction in runtime (for this file), but this is still almost
all compile time. Runing Julia with -O0 gives another 30% reduction.

Most of the speedup comes from not evaluating each expression twice outside the macros in the test_expression_with_string utility macro.

Extracted from #2277

Benchmarks suggest a 40% reduction in runtime, but this is still almost
all compile time. Runing Julia with -O0 gives another 30% reduction.
@codecov
Copy link

codecov bot commented Jul 16, 2020

Codecov Report

Merging #2285 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2285      +/-   ##
==========================================
- Coverage   91.25%   91.23%   -0.03%     
==========================================
  Files          42       42              
  Lines        4233     4234       +1     
==========================================
  Hits         3863     3863              
- Misses        370      371       +1     
Impacted Files Coverage Δ
src/constraints.jl 91.11% <0.00%> (-0.75%) ⬇️
src/operators.jl 87.75% <0.00%> (+0.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7fecaca...d0cd5c0. Read the comment docs.

test/operator.jl Outdated Show resolved Hide resolved
@odow
Copy link
Member Author

odow commented Jul 16, 2020

Travis ran and passed, not sure why it isn't showing: https://travis-ci.org/github/jump-dev/JuMP.jl/builds/708773094. Coverage looks spurious.

@odow odow merged commit b99d7a7 into master Jul 16, 2020
@odow odow deleted the od/test_operator branch July 16, 2020 16:11
@IainNZ
Copy link
Collaborator

IainNZ commented Aug 2, 2020

Nice! This is why #1745 is quick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants