https://github.com/zix99/fastmath
Fast math library and wrapper for C#
https://github.com/zix99/fastmath
Last synced: 10 months ago
JSON representation
Fast math library and wrapper for C#
- Host: GitHub
- URL: https://github.com/zix99/fastmath
- Owner: zix99
- Created: 2016-03-13T03:57:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-22T21:49:29.000Z (over 9 years ago)
- Last Synced: 2025-03-17T04:49:27.371Z (over 1 year ago)
- Language: C#
- Size: 1.14 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# FastMath
Uses [multiarch/crossbuild](https://hub.docker.com/r/multiarch/crossbuild/) docker image to cross-compile. Also can use mingw to easily cross-compile to windows.
## Second-pass results
Learned that `SuppressUnmanagedCodeSecurityAttribute` adds huge performance benefits on windows.
Learned that the process of fixing memory to pass via `ref` is slower on windows than with mono. Changing
to use pointers added huge gains on windows.
## First-Pass Results
10m matrix multiplications
### Linux
300ms for C11 restricted pointers
500ms for c99 pointers
1000ms under mono
### Windows (VM)
440 ms windows .NET
640 for c11
### OSX (x86_64 VM w/ Mono 3.4 x86)
600 ms for .NET
300 ms for dylib (32 bit)