@@ -42,18 +42,18 @@ Benchmarks comparing ada-idna with the popular `idna` crate (lower is better):
4242
4343| Benchmark | ada-idna | idna crate | Ratio |
4444| -----------| ----------| ------------| -------|
45- | ** Batch to_ascii conversion** | 14.09 µs | 5.82 µs | 2.42x slower |
46- | ** Batch to_unicode conversion** | 5.68 µs | 5.87 µs | ** 0.97x faster** |
47- | ** Single ASCII domain** | 79.24 ns | 20.00 ns | 3.96x slower |
48- | ** Single Unicode domain** | 318.19 ns | 132.78 ns | 2.40x slower |
49- | ** Complex Unicode domain** | 788.26 ns | 305.62 ns | 2.58x slower |
50- | ** Non-Latin scripts** | 512.55 ns | 246.42 ns | 2.08x slower |
51- | ** CJK domains** | 744.69 ns | 272.38 ns | 2.73x slower |
52- | ** Mixed scripts** | 431.62 ns | 203.87 ns | 2.12x slower |
45+ | ** Batch to_ascii conversion** | 12.69 µs | 6.07 µs | 2.09x slower |
46+ | ** Batch to_unicode conversion** | 5.06 µs | 5.26 µs | ** 0.96x faster** |
47+ | ** Single ASCII domain** | 77.59 ns | 18.98 ns | 4.09x slower |
48+ | ** Single Unicode domain** | 291.88 ns | 142.71 ns | 2.05x slower |
49+ | ** Complex Unicode domain** | 796.04 ns | 306.25 ns | 2.60x slower |
50+ | ** Non-Latin scripts** | 533.68 ns | 266.57 ns | 2.00x slower |
51+ | ** CJK domains** | 735.26 ns | 294.66 ns | 2.49x slower |
52+ | ** Mixed scripts** | 463.80 ns | 222.23 ns | 2.09x slower |
5353
5454** Ada-idna specific operations:**
55- - Punycode encoding: 1.68 µs
56- - Punycode decoding: 668.04 ns
55+ - Punycode encoding: 1.79 µs
56+ - Punycode decoding: 640.65 ns
5757- Unicode normalization: 1.29 µs
5858
5959* Run ` cargo bench ` to reproduce these results on your system.*
@@ -63,7 +63,7 @@ Benchmarks comparing ada-idna with the popular `idna` crate (lower is better):
6363🚧 ** This implementation is incomplete and not ready for production use.**
6464
6565Known limitations:
66- - Performance is 2.08-3.96x slower than the mature ` idna ` crate
66+ - Performance is 2.00-4.09x slower than the mature ` idna ` crate
6767- ** Ada-idna is faster than idna crate for to_unicode conversion** ⚡
6868- Some test cases fail due to expected value discrepancies
6969- Unicode table data may be incomplete
0 commit comments