parrotcode: UTF-8 Hash Keys | |
Contents | Examples |
examples/benchmarks/hash-utf8.pasm - UTF-8 Hash Keys
% ./parrot examples/benchmarks/hash-utf8.pasm
As soon as the first non-ASCII key is stored in a Hash, all keys are
converted to UTF-8.
This benchmark creates aC<PerlHash> PMC and stores 676 entries. Then
converts one key to UTF-8 and times 1000000 look-ups.
|