A small and simple benchmark for pattern (AOB) scan (findpattern) implementations written in C# inspired by this great C++ comparison. Aimed to compare real-world scanning performance without any frills. Currently 13 different implementations from 11 authors are included.
Feel free to create a pull request with your own patter scan implementation at any time. Use PatternScanTemplate.cs as a template for your one while following the rules. Afterwards add a [Benchmark]
block in Program.cs and create a pull request. Alternatively try to improve an already existing one.
- NO
-unsafe
compiler option - NO DLLs/libraries/WinAPIs (must work cross-platform)
- NO changes to build process
- has to work on 64 bit Windows/Linux
- has to work on most modern AMD64 processors
- don't reuse functions from other implementations, keep your class self-contained
- .NET Framework 6.0
- 64bit OS
- SSE/AVX support for some implementations
Use Visual Studio 2022 or VSCode to build
This project is licensed under the MIT License - see the LICENSE file for details