This adds additional benchmarks for encode_punycode and decode_punycode, which demonstrate lower performance of these functions when validate flag is set to false. That is because without validation, a quick manual encoding / decoding is done, but it does not check beforehand if it is required at all.
This adds these checks for both encoding and decoding (and does so in case of decoding even when validate flag is true), which shows a big speedup in the benchmark for validate: false and a minor speedup for decoding with validate: true.
This adds additional benchmarks for
encode_punycode
anddecode_punycode
, which demonstrate lower performance of these functions whenvalidate
flag is set to false. That is because without validation, a quick manual encoding / decoding is done, but it does not check beforehand if it is required at all.This adds these checks for both encoding and decoding (and does so in case of decoding even when
validate
flag istrue
), which shows a big speedup in the benchmark forvalidate: false
and a minor speedup for decoding withvalidate: true
.