Skip to content

Conversation

@JimBobSquarePants
Copy link
Member

@JimBobSquarePants JimBobSquarePants commented Oct 15, 2020

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

As we add more hardware intrinsics into the library we need a good way to test them.

Ideally we want to follow the same pattern the runtime uses for abstracting intrinsics so our tests should be able to call the same method multiple times with difference features disabled.

This PR adds two bits of functionality that allow this pattern

  • FeatureTestRunner.RunWithHwIntrinsicsFeature. Which utilizes RemoteExecutor + environmental constants to disable intrinsics features.
  • HwIntrinsics_SSE_AVX which is the first implementation of config classes for benchmarking a single method with separate runs utilizing environmental constants to disable intrinsics features.

@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #1385 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1385   +/-   ##
=======================================
  Coverage   82.83%   82.83%           
=======================================
  Files         690      690           
  Lines       30847    30843    -4     
  Branches     3542     3542           
=======================================
- Hits        25551    25550    -1     
+ Misses       4574     4572    -2     
+ Partials      722      721    -1     
Flag Coverage Δ
#unittests 82.83% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...arp/Formats/Jpeg/Components/Block8x8F.Generated.cs 100.00% <ø> (ø)
...rc/ImageSharp/Formats/Jpeg/Components/Block8x8F.cs 91.24% <100.00%> (+2.84%) ⬆️

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 4e61d87...b3ce02c. Read the comment docs.

@JimBobSquarePants JimBobSquarePants changed the title WIP: Advanced Feature Testing Advanced Feature Testing Oct 16, 2020
@JimBobSquarePants JimBobSquarePants marked this pull request as ready for review October 16, 2020 00:28
@JimBobSquarePants JimBobSquarePants requested a review from a team October 16, 2020 00:28
Copy link
Member

@antonfirsov antonfirsov left a comment

Choose a reason for hiding this comment

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

Looks good. Let's see where this concept brings us.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants