Commit 7c79b54
committed
Add an improved Rust version that iterates chars just once
----------------------------------------------------------------------------------------
Name (time in us) Min Max Mean
----------------------------------------------------------------------------------------
test_rust_once 694.0350 (1.0) 741.8010 (1.0) 695.5648 (1.0)
test_rust 1,806.4040 (2.60) 1,935.9130 (2.61) 1,812.6250 (2.61)
test_regex 14,219.5200 (20.49) 14,421.8970 (19.44) 14,244.1962 (20.48)
test_pure_python 31,766.5810 (45.77) 52,128.1230 (70.27) 35,289.6043 (50.74)
----------------------------------------------------------------------------------------1 parent 7da1b03 commit 7c79b54
2 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
18 | 34 | | |
19 | 35 | | |
20 | 36 | | |
| 37 | + | |
21 | 38 | | |
22 | 39 | | |
0 commit comments