diff --git a/jest_rust/README.md b/jest_rust/README.md index 70734d4..5d4364b 100644 --- a/jest_rust/README.md +++ b/jest_rust/README.md @@ -90,13 +90,21 @@ Time Jest Rust: 4.717588901519775 Time Retoor Python: 139.8203284740448 ***end benchmark*** ``` +## compile options benchmarks lto not thin: `Time Jest Rust: 5.306957483291626` slower + lto fat: `Time Jest Rust: 5.413678407669067` slower + codegen-units 1: `Time Jest Rust: 4.451631546020508` faster + opt-level z: `Time Jest Rust: 7.045313119888306` slower + strip true: `Time Jest Rust: 4.337219476699829` faster + lto true: `Time Jest Rust: 4.703521728515625` slower + lto none: `Time Jest Rust: 4.817203998565674` + lto thin: `Time Jest Rust: 4.429729223251343` faster # data integrity @@ -116,37 +124,6 @@ capitalized word percentage: 2% benchmark: 5033ms ``` -count forbidden word once only: -``` -file count: 904 -failed file count: 0 -sentence count: 5602301 -word count: 81701260 -capitalized count: 1753639 -numeric count: 14981248 -forbidden count: 1143234 -words per sentence average: 14.6 -forbidden word percentage: 1% -capitalized word percentage: 2% - -benchmark: 4737ms -``` -with trie: -``` -file count: 904 -failed file count: 0 -sentence count: 5602301 -word count: 81701260 -capitalized count: 1753639 -numeric count: 14981248 -forbidden count: 176528 -words per sentence average: 14.6 -forbidden word percentage: 0% -capitalized word percentage: 2% - -benchmark: 1588ms -``` -with fxhash trie: 1200ms muncher: ``` @@ -178,4 +155,41 @@ capitalized word percentage: 16% benchmark: 6078ms ``` -this is 2600ms with trie. eee \ No newline at end of file + +# forbidden words benchmarks +seems they take up about 4000ms to churn through in the original version + +for loops count forbidden word once only: +``` +file count: 904 +failed file count: 0 +sentence count: 5602301 +word count: 81701260 +capitalized count: 1753639 +numeric count: 14981248 +forbidden count: 1143234 +words per sentence average: 14.6 +forbidden word percentage: 1% +capitalized word percentage: 2% + +benchmark: 4737ms +``` +for loops with trie: +``` +file count: 904 +failed file count: 0 +sentence count: 5602301 +word count: 81701260 +capitalized count: 1753639 +numeric count: 14981248 +forbidden count: 176528 +words per sentence average: 14.6 +forbidden word percentage: 0% +capitalized word percentage: 2% + +benchmark: 1588ms +``` + +muncher with trie is 2600ms + +for loops with fxhash trie: 1200ms