Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build dotnet 3.1, 5.0, 6.0& test

on:
push:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
pull_request:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch

jobs:
build_and_test:

runs-on: ubuntu-latest
env:
config: 'Release'
strategy:
matrix:
dotnet: ['3.1.x', '5.0.x', '6.0.x']
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore dependencies
run: dotnet restore tests/SIMDArray.Tests/SIMDArray.Tests.fsproj
- name: Build
run: dotnet build --no-restore tests/SIMDArray.Tests/SIMDArray.Tests.fsproj
- name: Test
run: dotnet test --no-build --verbosity normal tests/SIMDArray.Tests/SIMDArray.Tests.fsproj
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,4 @@ docs/content/license.md
docs/content/release-notes.md
.fake
docs/tools/FSharp.Formatting.svclog
.idea/
Binary file removed .paket/paket.bootstrapper.exe
Binary file not shown.
72 changes: 0 additions & 72 deletions .paket/paket.targets

This file was deleted.

9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,34 @@ When measuring performance be sure to use Release builds with optimizations turn
Floating point addition is not associative, so results with SIMD operations will not be identical, though often
they will be more accurate, such as in the case of sum, or average.

## Upd: .NET 7.0 Basic Tests
```
// * Summary *

BenchmarkDotNet=v0.13.1, OS=Windows 10.0.19044.1526 (21H2)
AMD Ryzen 7 3800X, 1 CPU, 16 logical and 8 physical cores
.NET SDK=7.0.100-preview.3.22179.4
[Host] : .NET 7.0.0 (7.0.22.17504), X64 RyuJIT DEBUG
DefaultJob : .NET 7.0.0 (7.0.22.17504), X64 RyuJIT


| Method | Length | Mean | Error | StdDev | Allocated |
|---------- |-------- |--------------:|-------------:|-------------:|----------:|
| Max | 100 | 54.71 ns | 0.155 ns | 0.137 ns | - |
| MaxSIMD | 100 | 14.05 ns | 0.167 ns | 0.156 ns | - |
| MaxBy | 100 | 54.80 ns | 0.066 ns | 0.062 ns | - |
| MaxBySIMD | 100 | 19.13 ns | 0.050 ns | 0.047 ns | - |
| Max | 1000 | 489.10 ns | 1.344 ns | 1.192 ns | - |
| MaxSIMD | 1000 | 44.07 ns | 0.169 ns | 0.158 ns | - |
| MaxBy | 1000 | 491.93 ns | 2.946 ns | 2.460 ns | - |
| MaxBySIMD | 1000 | 139.47 ns | 0.721 ns | 0.674 ns | - |
| Max | 1000000 | 483,111.68 ns | 1,739.203 ns | 1,541.758 ns | - |
| MaxSIMD | 1000000 | 48,172.46 ns | 356.128 ns | 278.041 ns | - |
| MaxBy | 1000000 | 488,051.81 ns | 905.715 ns | 802.893 ns | - |
| MaxBySIMD | 1000000 | 133,417.00 ns | 134.370 ns | 112.205 ns | - |

```

## Performance Comparison vs Standard Array Functions

* [VS Core Lib Parallel](#parallel)
Expand Down
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#### 1.0.0 - .netstandard2.1 build
#### 0.0.1 - Unreleased
7 changes: 0 additions & 7 deletions SIMDArray.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{BF60BC93-E09B-4E5F-9D85-95A519479D54}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
.travis.yml = .travis.yml
appveyor.yml = appveyor.yml
build.cmd = build.cmd
build.fsx = build.fsx
build.sh = build.sh
LICENSE.txt = LICENSE.txt
paket.dependencies = paket.dependencies
paket.lock = paket.lock
README.md = README.md
RELEASE_NOTES.md = RELEASE_NOTES.md
EndProjectSection
Expand Down
9 changes: 0 additions & 9 deletions appveyor.yml

This file was deleted.

18 changes: 0 additions & 18 deletions build.cmd

This file was deleted.

Loading