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

Add set bit sort test #155

Merged
merged 2 commits into from
Aug 29, 2017
Merged

Add set bit sort test #155

merged 2 commits into from
Aug 29, 2017

Conversation

lupino3
Copy link
Member

@lupino3 lupino3 commented Aug 29, 2017

As discussed in Issue #132, adding a new program as a unit test. It completes in ~3 seconds on my machine as a unit test, making it a good regression test for performance issues.

If a terminating instruction had a comment, the old code would not
detect it properly. Switching from equals() to contains() fixes the
issue. It is still not perfect (the test should be done *after* the
instruction is built), but it's good enough.
Add set-bit-sort.s to unit tests. The program takes roughly 3 seconds to
complete as a unit test, making it a good candidate as a performance
regression test.
@codecov-io
Copy link

codecov-io commented Aug 29, 2017

Codecov Report

Merging #155 into master will increase coverage by 0.79%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #155      +/-   ##
============================================
+ Coverage     43.14%   43.94%   +0.79%     
- Complexity     1264     1291      +27     
============================================
  Files           241      241              
  Lines         10102    10104       +2     
  Branches       1137     1137              
============================================
+ Hits           4359     4440      +81     
+ Misses         5395     5326      -69     
+ Partials        348      338      -10
Impacted Files Coverage Δ Complexity Δ
src/main/java/org/edumips64/core/Parser.java 52.11% <0%> (+0.55%) 125 <0> (+3) ⬆️
src/test/java/org/edumips64/EndToEndTests.java 87.17% <100%> (+0.11%) 44 <1> (+1) ⬆️
src/main/java/org/edumips64/core/is/SYSCALL.java 91.97% <0%> (+1.23%) 27% <0%> (+1%) ⬆️
...java/org/edumips64/core/is/InstructionBuilder.java 57.79% <0%> (+1.83%) 112% <0%> (+4%) ⬆️
src/main/java/org/edumips64/core/is/BEQ.java 100% <0%> (+4%) 5% <0%> (+1%) ⬆️
src/main/java/org/edumips64/core/is/Storing.java 100% <0%> (+11.53%) 10% <0%> (+1%) ⬆️
src/main/java/org/edumips64/core/is/AND.java 100% <0%> (+23.52%) 9% <0%> (+5%) ⬆️
src/main/java/org/edumips64/core/is/BEQZ.java 100% <0%> (+100%) 5% <0%> (+5%) ⬆️
src/main/java/org/edumips64/core/is/BGEZ.java 100% <0%> (+100%) 6% <0%> (+6%) ⬆️

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 cef9584...8d5c016. Read the comment docs.

@lupino3 lupino3 merged commit 0f6eb14 into master Aug 29, 2017
@lupino3 lupino3 deleted the add-set-bit-sort-test branch August 29, 2017 22:17
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.

None yet

2 participants