Thread Apache error log erweitern
(55 answers)
Opened by ALE1981 at 2019-09-20 11:41 Quote So reden wir nicht miteinander. Wenn Du hierzu was beitragen willst, mach ein Benchmark. MFG Benchmark: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 use Benchmark qw(:all); use Encode; my $chr = pack "U", 0x20AC; cmpthese(1000000, { 'Encode' => sub{ my $len = length encode_utf8($chr); my $bin = pack("N", $len).encode_utf8($chr); }, 'uBytes' => sub{ use bytes; my $bin = pack("N", length $chr).$chr; }, }); Rate Encode uBytes Encode 204499/s -- -87% uBytes 1524390/s 645% -- Faktn! https://rolfrost.de/widechar.html . Last edited: 2019-09-23 19:22:04 +0200 (CEST) |