parent
b711d5a908
commit
f9115a9e40
@ -90,13 +90,21 @@ Time Jest Rust: 4.717588901519775
|
|||||||
Time Retoor Python: 139.8203284740448
|
Time Retoor Python: 139.8203284740448
|
||||||
***end benchmark***
|
***end benchmark***
|
||||||
```
|
```
|
||||||
|
## compile options benchmarks
|
||||||
lto not thin: `Time Jest Rust: 5.306957483291626` slower
|
lto not thin: `Time Jest Rust: 5.306957483291626` slower
|
||||||
|
|
||||||
lto fat: `Time Jest Rust: 5.413678407669067` slower
|
lto fat: `Time Jest Rust: 5.413678407669067` slower
|
||||||
|
|
||||||
codegen-units 1: `Time Jest Rust: 4.451631546020508` faster
|
codegen-units 1: `Time Jest Rust: 4.451631546020508` faster
|
||||||
|
|
||||||
opt-level z: `Time Jest Rust: 7.045313119888306` slower
|
opt-level z: `Time Jest Rust: 7.045313119888306` slower
|
||||||
|
|
||||||
strip true: `Time Jest Rust: 4.337219476699829` faster
|
strip true: `Time Jest Rust: 4.337219476699829` faster
|
||||||
|
|
||||||
lto true: `Time Jest Rust: 4.703521728515625` slower
|
lto true: `Time Jest Rust: 4.703521728515625` slower
|
||||||
|
|
||||||
lto none: `Time Jest Rust: 4.817203998565674`
|
lto none: `Time Jest Rust: 4.817203998565674`
|
||||||
|
|
||||||
lto thin: `Time Jest Rust: 4.429729223251343` faster
|
lto thin: `Time Jest Rust: 4.429729223251343` faster
|
||||||
|
|
||||||
# data integrity
|
# data integrity
|
||||||
@ -116,37 +124,6 @@ capitalized word percentage: 2%
|
|||||||
|
|
||||||
benchmark: 5033ms
|
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:
|
muncher:
|
||||||
```
|
```
|
||||||
@ -178,4 +155,41 @@ capitalized word percentage: 16%
|
|||||||
|
|
||||||
benchmark: 6078ms
|
benchmark: 6078ms
|
||||||
```
|
```
|
||||||
this is 2600ms with trie. eee
|
|
||||||
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user