Skip to content

A small and simple benchmark for pattern scan (findpattern) implementations written in C#.

License

Notifications You must be signed in to change notification settings

uberhalit/PatternScanBench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PatternScanBenchmark

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.

PatternScanBenchmark

Contributing

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.

Rules

  • 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

Prerequisites

  • .NET Framework 6.0
  • 64bit OS
  • SSE/AVX support for some implementations

Building

Use Visual Studio 2022 or VSCode to build

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A small and simple benchmark for pattern scan (findpattern) implementations written in C#.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages