)]}'
{
  "commit": "334dc90431cf2e3b1252161d2e0bb4d5ace789f4",
  "tree": "b64c0b6aa675330ab7b46ebf9a5b78f40493adbd",
  "parents": [
    "068c1e8fd5e4c03f33d6a788931fd2a78a44f3cd"
  ],
  "author": {
    "name": "Ignas Anikevicius",
    "email": "240938+aignas@users.noreply.github.com",
    "time": "Sat Nov 21 01:24:38 2026 +0900"
  },
  "committer": {
    "name": "Ignas Anikevicius",
    "email": "240938+aignas@users.noreply.github.com",
    "time": "Sat Nov 21 01:24:38 2026 +0900"
  },
  "message": "test: add benchmarks and a step counter for the Starlark code\n\nThe version parsing and the marker evaluation is executed many times\nduring the module extension evaluation and there was no way to know if\na change makes it slower.\n\nAdd a shim that executes the `.bzl` files with CPython and counts the\nexecuted lines, which does not depend on the machine and can be\nasserted in a test.\nThe `//tests/perf:steps_test` has the number of steps for a set of\nworkloads and `//tests/perf:benchmark` prints them.\n\nThe steps are a proxy, hence `//tests/perf:bazel_benchmark` measures\nthe same workloads with Bazel itself. The workload is executed during\nthe analysis of a target and the number of iterations is a build flag,\nso the time of an iteration is the difference of the wall time of 2\nbuilds divided by the difference of the iterations.\n\nThe results are recorded in the README.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "78e4c48cd2f2a014251cd01b4a8203ccacc4c38f",
      "old_mode": 33188,
      "old_path": "python/private/BUILD.bazel",
      "new_id": "47fb78d8c990d53ed5b3d0a419621c6c1e0cc2b3",
      "new_mode": 33188,
      "new_path": "python/private/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "bbbe3eb44baa9dd60312d0163bfab35365d808b0",
      "new_mode": 33188,
      "new_path": "tests/perf/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "665a17cc7ce7346817ec2fd29a6c4e12bb8718e6",
      "new_mode": 33188,
      "new_path": "tests/perf/README.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8e3d162b889ed66e541213c2c8a386784d6707df",
      "new_mode": 33188,
      "new_path": "tests/perf/bazel_benchmark.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a957d79152086e964d88b69e47cae44f55e6afb5",
      "new_mode": 33188,
      "new_path": "tests/perf/bazel_benchmark.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a9b8382a58f874fb293e1c00251e29e1d4384c3a",
      "new_mode": 33188,
      "new_path": "tests/perf/benchmark.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "eed139a7cb8bab2a2d2f9de9b51a431ee5c8c89c",
      "new_mode": 33188,
      "new_path": "tests/perf/starlark_shim.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4fc64a4a3c32a6ee5f8e6e530af10fcb27e12316",
      "new_mode": 33188,
      "new_path": "tests/perf/steps_test.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "74fa9f562ed34825a977286b835c716967c1b5a5",
      "new_mode": 33188,
      "new_path": "tests/perf/workloads.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c66b5b350d08476a043ae75c2234bd6039188714",
      "new_mode": 33188,
      "new_path": "tests/perf/workloads.py"
    }
  ]
}
