|
3 | 3 | ## Test Environment |
4 | 4 |
|
5 | 5 | - **OS**: Windows 11 - WSL2 (Ubuntu 22.04.4 LTS) |
6 | | -- **CPU**: AMD Ryzen 9 5900HX 3.30 GHz |
7 | | -- **RAM**: 64 GB |
| 6 | +- **CPU**: AMD Ryzen 9 5900HX 3.30 GHz (Benchmark constrained to 1 CPU core) |
| 7 | +- **RAM**: 64 GB (Benchmark constrained to 512 MB) |
8 | 8 |
|
9 | 9 | ### Benchmarks |
10 | 10 |
|
| 11 | +#### v3.0.0 |
| 12 | +``` |
| 13 | +Using test data: v1 |
| 14 | +exists() - small clean text x 2,263,763 ops/sec ±3.96% (83 runs sampled) |
| 15 | +exists() - small profane text x 1,831,670 ops/sec ±3.09% (86 runs sampled) |
| 16 | +exists() - large clean text x 38,185 ops/sec ±2.82% (84 runs sampled) |
| 17 | +exists() - large profane text x 686,951 ops/sec ±2.11% (87 runs sampled) |
| 18 | +exists() - partial match, small profane text x 1,624,503 ops/sec ±8.02% (78 runs sampled) |
| 19 | +censor() - Word, small profane text x 915,620 ops/sec ±6.16% (83 runs sampled) |
| 20 | +censor() - FirstChar, small profane text x 1,275,945 ops/sec ±2.68% (77 runs sampled) |
| 21 | +censor() - FirstVowel, small profane text x 902,065 ops/sec ±3.43% (81 runs sampled) |
| 22 | +censor() - AllVowels, small profane text x 942,445 ops/sec ±2.94% (84 runs sampled) |
| 23 | +censor() - Word, large profane text x 5,578 ops/sec ±2.17% (86 runs sampled) |
| 24 | +censor() - partial match, Word, small profane text x 869,941 ops/sec ±7.91% (82 runs sampled) |
| 25 | +Fastest: exists() - small clean text |
| 26 | +``` |
| 27 | + |
11 | 28 | #### v2.4.0 |
12 | 29 | ``` |
13 | 30 | Using test data: v1 |
14 | | -exists() - small clean text x 7,384,356 ops/sec ±1.24% (95 runs sampled) |
15 | | -exists() - small profane text x 6,347,800 ops/sec ±1.25% (90 runs sampled) |
16 | | -exists() - large clean text x 49,978 ops/sec ±0.56% (93 runs sampled) |
17 | | -exists() - large profane text x 1,216,505 ops/sec ±2.03% (81 runs sampled) |
18 | | -exists() - partial match, small profane text x 5,319,125 ops/sec ±1.04% (93 runs sampled) |
19 | | -censor() - Word, small profane text x 1,899,374 ops/sec ±0.54% (95 runs sampled) |
20 | | -censor() - FirstChar, small profane text x 3,233,749 ops/sec ±1.40% (87 runs sampled) |
21 | | -censor() - FirstVowel, small profane text x 1,894,666 ops/sec ±0.92% (92 runs sampled) |
22 | | -censor() - AllVowels, small profane text x 1,697,305 ops/sec ±2.07% (92 runs sampled) |
23 | | -censor() - Word, large profane text x 9,563 ops/sec ±0.91% (87 runs sampled) |
24 | | -censor() - partial match, Word, small profane text x 1,597,856 ops/sec ±1.19% (92 runs sampled) |
| 31 | +exists() - small clean text x 3,838,466 ops/sec ±3.34% (81 runs sampled) |
| 32 | +exists() - small profane text x 2,557,317 ops/sec ±7.47% (74 runs sampled) |
| 33 | +exists() - large clean text x 41,031 ops/sec ±2.82% (83 runs sampled) |
| 34 | +exists() - large profane text x 799,283 ops/sec ±2.16% (83 runs sampled) |
| 35 | +exists() - partial match, small profane text x 3,013,455 ops/sec ±5.68% (88 runs sampled) |
| 36 | +censor() - Word, small profane text x 1,328,481 ops/sec ±2.17% (86 runs sampled) |
| 37 | +censor() - FirstChar, small profane text x 2,197,796 ops/sec ±5.86% (84 runs sampled) |
| 38 | +censor() - FirstVowel, small profane text x 1,184,065 ops/sec ±4.31% (75 runs sampled) |
| 39 | +censor() - AllVowels, small profane text x 1,105,599 ops/sec ±7.69% (77 runs sampled) |
| 40 | +censor() - Word, large profane text x 5,594 ops/sec ±6.02% (85 runs sampled) |
| 41 | +censor() - partial match, Word, small profane text x 1,031,901 ops/sec ±2.86% (81 runs sampled) |
25 | 42 | Fastest: exists() - small clean text |
26 | 43 | ``` |
0 commit comments