{
  "configuration": {
    "batch_size": 100,
    "channel_capacity": 110,
    "channel_expiry_environment_variable": "GENERAL_MANAGER_BENCHMARK_CHANNEL_EXPIRY",
    "channel_expiry_seconds": 60,
    "existing_rows": 1000,
    "modes": {
      "baseline_create_many": "current public create_many fallback; it is not an optimized result",
      "baseline_repeated": "repeated public GeneralManager.create",
      "optimized_bulk_sql": "emitted only after every fixture proves eligibility, a bulk QuerySet insert, and zero canonical create calls outside the timing window"
    },
    "optimized_bulk_sql_required": false,
    "permissions": "public ManagerBasedPermission evaluated for every measured row",
    "redis_count_definition": "one INFO commandstats/stats snapshot before and after per unique Redis server run_id; two observer commands subtracted per server",
    "refresh_receiver": "legacy post_data_change: cache in transaction; Channels on_commit",
    "repeats": 2,
    "rows": 100,
    "search_limitation": "external search dispatch is no-op; direct and related plan formation remains active",
    "selected_paths": [
      "baseline_repeated",
      "baseline_create_many"
    ]
  },
  "environment": {
    "cache_redis_url": "redis://127.0.0.1:56497/15",
    "channel_redis_url": "redis://127.0.0.1:56497/14",
    "database_vendor": "postgresql",
    "database_version": [
      18,
      6
    ],
    "django": "5.2.16",
    "general_manager_package_path": "/private/tmp/gm-bulk-baseline/src/general_manager/__init__.py",
    "loaded_general_manager_python_tree_sha256": "6f7a9fe1c8634db3c82fdfc4f47974e7a8c1b819a7a7f28a9ffcebb523014c5f",
    "loaded_general_manager_sha256": "327fc9ae9734856aeb6a633cd1a4957cdc8bec07e3dfd95411da9634bc53364d",
    "loaded_source_commit": "archive-pre-optimization",
    "python": "3.12.4"
  },
  "results": {
    "baseline_create_many": {
      "elapsed": [
        {
          "metrics": {
            "elapsed_seconds": 1.1913599589606747,
            "peak_python_bytes": null,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 1,
            "rows_created": 100,
            "workflow_events": 100
          }
        },
        {
          "metrics": {
            "elapsed_seconds": 1.2414100000169128,
            "peak_python_bytes": null,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 1,
            "rows_created": 100,
            "workflow_events": 100
          }
        }
      ],
      "memory": [
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": 968770,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 1,
            "rows_created": 100,
            "workflow_events": 100
          }
        },
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": 936823,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 1,
            "rows_created": 100,
            "workflow_events": 100
          }
        }
      ],
      "profile": [
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": null,
            "profile_path": "/private/tmp/gm-throughput-baseline-final.profile.baseline_create_many.repeat-0.pstats",
            "profile_primitive_calls": 2960423,
            "profile_total_calls": 3078240,
            "profile_total_seconds": 1.9082401349999971,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 1,
            "rows_created": 100,
            "workflow_events": 100
          }
        },
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": null,
            "profile_path": "/private/tmp/gm-throughput-baseline-final.profile.baseline_create_many.repeat-1.pstats",
            "profile_primitive_calls": 2960331,
            "profile_total_calls": 3078200,
            "profile_total_seconds": 1.8135985529999985,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 1,
            "rows_created": 100,
            "workflow_events": 100
          }
        }
      ],
      "sql_redis": [
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": null,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": {
              "client|setinfo": 200,
              "del": 408,
              "eval": 100,
              "exec": 104,
              "expire": 100,
              "get": 3206,
              "mget": 6,
              "multi": 104,
              "select": 100,
              "set": 806,
              "zadd": 100,
              "zcount": 100,
              "zrange": 100,
              "zremrangebyscore": 200
            },
            "redis_commands": 5634,
            "sql_commands": 1516
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 1,
            "rows_created": 100,
            "workflow_events": 100
          }
        },
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": null,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": {
              "client|setinfo": 200,
              "del": 408,
              "eval": 100,
              "exec": 104,
              "expire": 100,
              "get": 3206,
              "mget": 6,
              "multi": 104,
              "select": 100,
              "set": 806,
              "zadd": 100,
              "zcount": 100,
              "zrange": 100,
              "zremrangebyscore": 200
            },
            "redis_commands": 5634,
            "sql_commands": 1516
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 1,
            "rows_created": 100,
            "workflow_events": 100
          }
        }
      ]
    },
    "baseline_repeated": {
      "elapsed": [
        {
          "metrics": {
            "elapsed_seconds": 1.4435389589052647,
            "peak_python_bytes": null,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 100,
            "rows_created": 100,
            "workflow_events": 100
          }
        },
        {
          "metrics": {
            "elapsed_seconds": 1.459783458034508,
            "peak_python_bytes": null,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 100,
            "rows_created": 100,
            "workflow_events": 100
          }
        }
      ],
      "memory": [
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": 664742,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 100,
            "rows_created": 100,
            "workflow_events": 100
          }
        },
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": 582484,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 100,
            "rows_created": 100,
            "workflow_events": 100
          }
        }
      ],
      "profile": [
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": null,
            "profile_path": "/private/tmp/gm-throughput-baseline-final.profile.baseline_repeated.repeat-0.pstats",
            "profile_primitive_calls": 3661530,
            "profile_total_calls": 3808569,
            "profile_total_seconds": 2.3743559980000004,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 100,
            "rows_created": 100,
            "workflow_events": 100
          }
        },
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": null,
            "profile_path": "/private/tmp/gm-throughput-baseline-final.profile.baseline_repeated.repeat-1.pstats",
            "profile_primitive_calls": 3661457,
            "profile_total_calls": 3808485,
            "profile_total_seconds": 2.3885521970000045,
            "redis_command_breakdown": null,
            "redis_commands": null,
            "sql_commands": null
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 100,
            "rows_created": 100,
            "workflow_events": 100
          }
        }
      ],
      "sql_redis": [
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": null,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": {
              "client|setinfo": 200,
              "del": 408,
              "eval": 100,
              "exec": 104,
              "expire": 100,
              "get": 3206,
              "mget": 6,
              "multi": 104,
              "select": 100,
              "set": 806,
              "zadd": 100,
              "zcount": 100,
              "zrange": 100,
              "zremrangebyscore": 200
            },
            "redis_commands": 5634,
            "sql_commands": 2506
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 100,
            "rows_created": 100,
            "workflow_events": 100
          }
        },
        {
          "metrics": {
            "elapsed_seconds": null,
            "peak_python_bytes": null,
            "profile_path": null,
            "profile_primitive_calls": null,
            "profile_total_calls": null,
            "profile_total_seconds": null,
            "redis_command_breakdown": {
              "client|setinfo": 200,
              "del": 408,
              "eval": 100,
              "exec": 104,
              "expire": 100,
              "get": 3206,
              "mget": 6,
              "multi": 104,
              "select": 100,
              "set": 806,
              "zadd": 100,
              "zcount": 100,
              "zrange": 100,
              "zremrangebyscore": 200
            },
            "redis_commands": 5634,
            "sql_commands": 2506
          },
          "semantics": {
            "applied_cache_identifiers": 100,
            "applied_cache_refreshes": 100,
            "external_notifications": 100,
            "history_rows": 100,
            "notification_delivered": true,
            "permission_checks": 100,
            "related_search_plans": 100,
            "rows_created": 100,
            "workflow_events": 100
          }
        }
      ]
    }
  },
  "summary": {
    "baseline_create_many": {
      "elapsed": {
        "elapsed_seconds": 1.2163849794887938
      },
      "memory": {
        "peak_python_bytes": 952796.5
      },
      "profile": {
        "profile_primitive_calls": 2960377.0,
        "profile_total_calls": 3078220.0,
        "profile_total_seconds": 1.8609193439999978
      },
      "sql_redis": {
        "redis_commands": 5634.0,
        "sql_commands": 1516.0
      }
    },
    "baseline_repeated": {
      "elapsed": {
        "elapsed_seconds": 1.4516612084698863
      },
      "memory": {
        "peak_python_bytes": 623613.0
      },
      "profile": {
        "profile_primitive_calls": 3661493.5,
        "profile_total_calls": 3808527.0,
        "profile_total_seconds": 2.3814540975000025
      },
      "sql_redis": {
        "redis_commands": 5634.0,
        "sql_commands": 2506.0
      }
    }
  }
}
