introduce option to skip checking for repeated keys
This commit is contained in:
parent
5d184327e4
commit
e2ef23a46a
4 changed files with 24 additions and 1 deletions
4
jsxbench
4
jsxbench
|
@ -39,8 +39,10 @@ main([]) ->
|
|||
format(frequency:profile({"empty array to json", ?averageN({jsx, encode, [[]]}, 1000)})),
|
||||
format(frequency:profile({"sample tweet to term", ?averageN({jsx, decode, [sample_tweet()]}, 1000)})),
|
||||
format(frequency:profile({"sample tweet to json", ?averageN({jsx, encode, [jsx:decode(sample_tweet())]}, 1000)})),
|
||||
format(frequency:profile({"sample tweet to json (without key checks)", ?averageN({jsx, encode, [jsx:decode(sample_tweet()), [repeat_keys]]}, 1000)})),
|
||||
format(frequency:profile({"sample github user to term", ?averageN({jsx, decode, [sample_github_user()]}, 1000)})),
|
||||
format(frequency:profile({"sample github user to json", ?averageN({jsx, encode, [jsx:decode(sample_github_user())]}, 1000)})).
|
||||
format(frequency:profile({"sample github user to json", ?averageN({jsx, encode, [jsx:decode(sample_github_user())]}, 1000)})),
|
||||
format(frequency:profile({"sample github user to json", ?averageN({jsx, encode, [jsx:decode(sample_github_user()), [repeat_keys]]}, 1000)})).
|
||||
|
||||
|
||||
format([]) -> ok;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue