microsoft / security-utilities

Security utilities for key generation, string redaction, etc.
MIT License
24 stars 9 forks source link

Rust: Fix benchmark performance test #66

Closed beaubelgrave closed 2 months ago

beaubelgrave commented 2 months ago

The current benchmark test for the Rust scanner omitted the scanner getting reset. This causes the scanner to accumulate possible matches and cause the Vec to resize. This leads to an inaccurate picture of performance of the scanner.

By properly resetting the scanner, the performance increases by ~20%.