2021-05-26 13:30:43 +00:00
<test >
2019-05-28 11:47:33 +00:00
<substitutions >
<substitution >
2019-07-27 21:17:44 +00:00
<name > json</name>
2019-05-28 11:47:33 +00:00
<values >
<value > '{"sparam":"test_string","nparam": 772}'</value>
</values>
</substitution>
<substitution >
2019-07-27 21:17:44 +00:00
<name > long_json</name>
2019-05-28 11:47:33 +00:00
<values >
<value > '{"sparam":{"nested_1":"test_string","nested_2":"test_2"}, "nparam":8495, "fparam":{"nested_1":91.15,"nested_2":[334, 89.05, 1000.01]}, "bparam":false}'</value>
</values>
</substitution>
</substitutions>
<settings >
<allow_simdjson > 1</allow_simdjson>
</settings>
2021-03-29 19:43:02 +00:00
<query > SELECT 'simdjson-1', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractString(materialize({json}), 'sparam'))</query>
<query > SELECT 'simdjson-2', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractString(materialize({json}), 'sparam', 'nested_1'))</query>
<query > SELECT 'simdjson-3', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractInt(materialize({json}), 'nparam'))</query>
<query > SELECT 'simdjson-4', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractUInt(materialize({json}), 'nparam'))</query>
<query > SELECT 'simdjson-5', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractFloat(materialize({json}), 'fparam'))</query>
2019-08-18 21:50:51 +00:00
2021-10-23 21:11:28 +00:00
<query > SELECT 'simdjson-6', count() FROM zeros(1000000) WHERE NOT ignore(JSONExtractString(materialize({long_json}), 'sparam'))</query>
2021-03-29 19:43:02 +00:00
<query > SELECT 'simdjson-7', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractString(materialize({long_json}), 'sparam', 'nested_1'))</query>
<query > SELECT 'simdjson-8', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractInt(materialize({long_json}), 'nparam'))</query>
<query > SELECT 'simdjson-9', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractUInt(materialize({long_json}), 'nparam'))</query>
2021-03-31 13:04:55 +00:00
<query > SELECT 'simdjson-10', count() FROM zeros(3000000) WHERE NOT ignore(JSONExtractRaw(materialize({long_json}), 'fparam'))</query>
2021-03-29 19:43:02 +00:00
<query > SELECT 'simdjson-11', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractFloat(materialize({long_json}), 'fparam'))</query>
<query > SELECT 'simdjson-12', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractFloat(materialize({long_json}), 'fparam', 'nested_2', -2))</query>
<query > SELECT 'simdjson-13', count() FROM zeros(5000000) WHERE NOT ignore(JSONExtractBool(materialize({long_json}), 'bparam'))</query>
2019-05-28 11:47:33 +00:00
</test>