#!/usr/bin/env bash # The contents of this file are subject to the terms of the Common Development and # Distribution License (the License). You may not use this file except in compliance with the # License. # # You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the # specific language governing permission and limitations under the License. # # When distributing Covered Software, include this CDDL Header Notice in each file and include # the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL # Header, with the fields enclosed by brackets [] replaced by your own identifying # information: "Portions copyright [year] [name of copyright owner]". # # Copyright 2026 3A Systems, LLC. # # Render an OpenDJ-vs-OpenLDAP LDAP benchmark report (versions + comparison table + # comparative Mermaid charts) to stdout โ€” intended to be appended to $GITHUB_STEP_SUMMARY. # # Usage: # summary.sh \ # [openldap_image] [opendj_image] # # The admin connection bind is labelled ADMIN_CONNECT in the plan and is intentionally # skipped here, so it never pollutes the per-operation comparison. set -euo pipefail OL_JSON="${1:?openldap statistics.json required}" DJ_JSON="${2:?opendj statistics.json required}" OL_VER="${3:-unknown}" DJ_VER="${4:-unknown}" OL_IMG="${5:-}" DJ_IMG="${6:-}" # Operations to compare, in workflow order. ADMIN_CONNECT and Total are excluded. OPS=("ADD" "SEARCH" "COMPARE" "MODIFY" "BIND" "DELETE" "READD") # m