FrameworkBenchmarks icon indicating copy to clipboard operation
FrameworkBenchmarks copied to clipboard

Should UTF8 encoding and escaping be mandatory in the json test?

Open matt-42 opened this issue 5 years ago • 1 comments

Right now, there is no UTF8 characters in the message to encode in the JSON test. This allows frameworks to remplace the UTF8 -> JSON encoding step with a much faster simple string copy.

Wouldn't be more realistic to add just one UTF8 char and one special char (" for example) in the message so all frameworks are forced to activate UTF8 encoding and escaping ?

Cheers, Matthieu

matt-42 avatar Oct 09 '20 08:10 matt-42

I would recommend we use one or more 3 byte characters and one or more 4 byte characters to ensure no artificial shortcuts are taken.

https://design215.com/toolbox/utf8-3byte-characters.php http://www.i18nguy.com/unicode/supplementary-test.html

jgowdy avatar Nov 28 '21 14:11 jgowdy