jetro-core 0.4.0

Jetro core — parser, compiler, and VM for the Jetro JSON query language. Storage-free.
Documentation
{
  "n_orders": 20000,
  "items_per_order": 6,
  "entries": [
    {
      "query": "$.orders.map(customer.address.city)",
      "best_us": 3430,
      "result_hash": 4562789332655907777
    },
    {
      "query": "$.orders.map(customer.address.country_code).unique()",
      "best_us": 3082,
      "result_hash": 17234915706292712500
    },
    {
      "query": "$.orders.filter(total > 500).map(id)",
      "best_us": 6288,
      "result_hash": 3881991406572976375
    },
    {
      "query": "$.orders.filter(status == \"shipped\" and priority == \"high\").count()",
      "best_us": 694,
      "result_hash": 3774695220450827664
    },
    {
      "query": "$..find(@.status == \"shipped\")",
      "best_us": 76635,
      "result_hash": 15250201336480098615
    },
    {
      "query": "$..find(@.sku == \"SKU-00042\")",
      "best_us": 59222,
      "result_hash": 4906392417031728007
    },
    {
      "query": "$..find(@.status == \"shipped\", @.priority == \"urgent\")",
      "best_us": 65302,
      "result_hash": 1023477253303861944
    },
    {
      "query": "$..total.sum()",
      "best_us": 15060,
      "result_hash": 12417113293128148770
    },
    {
      "query": "$..sku",
      "best_us": 42832,
      "result_hash": 1446226222789116499
    },
    {
      "query": "$.orders.group_by(status)",
      "best_us": 81675,
      "result_hash": 1668083266125975683
    },
    {
      "query": "$.orders.map(total).sum()",
      "best_us": 358,
      "result_hash": 12417113293128148770
    },
    {
      "query": "$.orders.map(total).max()",
      "best_us": 371,
      "result_hash": 16948907372224901644
    },
    {
      "query": "[o.id for o in $.orders if o.total > 1000]",
      "best_us": 1432,
      "result_hash": 3483644353972730971
    }
  ]
}