{
  "configuration": {
    "batch_size": 100,
    "channel_capacity": 1010,
    "channel_expiry_environment_variable": "GENERAL_MANAGER_BENCHMARK_CHANNEL_EXPIRY",
    "channel_expiry_seconds": 60,
    "existing_rows": 100000,
    "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": true,
    "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": "public connect_batch_refresh_receiver: cache callback in transaction; Channels callback on_commit",
    "repeats": 3,
    "rows": 1000,
    "search_limitation": "external search dispatch is no-op; direct and related plan formation remains active",
    "selected_paths": [
      "baseline_repeated",
      "baseline_create_many",
      "optimized_bulk_sql"
    ]
  },
  "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": "/Users/tim/.codex/worktrees/bb54/general_manager/src/general_manager/__init__.py",
    "loaded_general_manager_python_tree_sha256": "1f76286d0b98d1d374ea7c2720332f1dacb7b9021d909b3e84fa07dca163d7c1",
    "loaded_general_manager_sha256": "0c5e4e7deb0674ca57def6383f5865a3dd6f84409106bb3111e9afe477ed4754",
    "loaded_source_commit": "working-tree-final",
    "python": "3.12.4"
  },
  "results": {
    "baseline_create_many": {
      "elapsed": [
        {
          "metrics": {
            "elapsed_seconds": 12.336673374986276,
            "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": 1000,
            "applied_cache_refreshes": 1000,
            "external_notifications": 1000,
            "history_rows": 1000,
            "notification_delivered": true,
            "permission_checks": 1000,
            "related_search_plans": 10,
            "rows_created": 1000,
            "workflow_events": 1000
          }
        },
        {
          "metrics": {
            "elapsed_seconds": 12.324969041044824,
            "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": 1000,
            "applied_cache_refreshes": 1000,
            "external_notifications": 1000,
            "history_rows": 1000,
            "notification_delivered": true,
            "permission_checks": 1000,
            "related_search_plans": 10,
            "rows_created": 1000,
            "workflow_events": 1000
          }
        },
        {
          "metrics": {
            "elapsed_seconds": 12.451595291029662,
            "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": 1000,
            "applied_cache_refreshes": 1000,
            "external_notifications": 1000,
            "history_rows": 1000,
            "notification_delivered": true,
            "permission_checks": 1000,
            "related_search_plans": 10,
            "rows_created": 1000,
            "workflow_events": 1000
          }
        }
      ]
    },
    "baseline_repeated": {
      "elapsed": [
        {
          "metrics": {
            "elapsed_seconds": 14.534394250018522,
            "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": 1000,
            "applied_cache_refreshes": 1000,
            "external_notifications": 1000,
            "history_rows": 1000,
            "notification_delivered": true,
            "permission_checks": 1000,
            "related_search_plans": 1000,
            "rows_created": 1000,
            "workflow_events": 1000
          }
        },
        {
          "metrics": {
            "elapsed_seconds": 14.500581167056225,
            "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": 1000,
            "applied_cache_refreshes": 1000,
            "external_notifications": 1000,
            "history_rows": 1000,
            "notification_delivered": true,
            "permission_checks": 1000,
            "related_search_plans": 1000,
            "rows_created": 1000,
            "workflow_events": 1000
          }
        },
        {
          "metrics": {
            "elapsed_seconds": 14.427596875000745,
            "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": 1000,
            "applied_cache_refreshes": 1000,
            "external_notifications": 1000,
            "history_rows": 1000,
            "notification_delivered": true,
            "permission_checks": 1000,
            "related_search_plans": 1000,
            "rows_created": 1000,
            "workflow_events": 1000
          }
        }
      ]
    },
    "optimized_bulk_sql": {
      "elapsed": [
        {
          "metrics": {
            "elapsed_seconds": 0.6329020829871297,
            "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": 1000,
            "applied_cache_refreshes": 10,
            "external_notifications": 10,
            "history_rows": 1000,
            "notification_delivered": true,
            "permission_checks": 1000,
            "related_search_plans": 10,
            "rows_created": 1000,
            "workflow_events": 1000
          }
        },
        {
          "metrics": {
            "elapsed_seconds": 0.6250443750759587,
            "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": 1000,
            "applied_cache_refreshes": 10,
            "external_notifications": 10,
            "history_rows": 1000,
            "notification_delivered": true,
            "permission_checks": 1000,
            "related_search_plans": 10,
            "rows_created": 1000,
            "workflow_events": 1000
          }
        },
        {
          "metrics": {
            "elapsed_seconds": 0.6349190840264782,
            "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": 1000,
            "applied_cache_refreshes": 10,
            "external_notifications": 10,
            "history_rows": 1000,
            "notification_delivered": true,
            "permission_checks": 1000,
            "related_search_plans": 10,
            "rows_created": 1000,
            "workflow_events": 1000
          }
        }
      ]
    }
  },
  "summary": {
    "baseline_create_many": {
      "elapsed": {
        "elapsed_seconds": 12.37107923568692
      }
    },
    "baseline_repeated": {
      "elapsed": {
        "elapsed_seconds": 14.487524097358497
      }
    },
    "optimized_bulk_sql": {
      "elapsed": {
        "elapsed_seconds": 0.6309551806965222
      }
    }
  }
}
