Skip to content

Add comparative benchmark framework with Docker multi-database environment and polyglot persistence benchmark - #54

Merged
makr-code merged 4 commits into
mainfrom
copilot/create-benchmark-database-tests
Dec 2, 2025
Merged

makr-code merged 4 commits into
mainfrom
copilot/create-benchmark-database-tests

Conversation

Copilot AI commented Dec 2, 2025 •

Copy link
Copy Markdown
Contributor

Implements a standardized benchmark suite for comparing ThemisDB against established databases (PostgreSQL, MongoDB, Redis, ArangoDB, Neo4j, Milvus, Elasticsearch, ChromaDB) using Docker containers and Hugging Face datasets.

Docker Environment

  • docker-compose.benchmark.yml with 9+ databases, resource-limited containers (4 CPU, 4GB RAM)
  • Health checks, service dependencies, benchmark runner container
  • Database-specific configs: PostgreSQL (with pgvector), MongoDB, Redis, ChromaDB

Dataset Integration

  • Wikipedia Simple English loader via Hugging Face datasets
  • Synthetic vector generator (configurable dimensions, normalized)
  • Scale-free graph generator (Barabási-Albert model)

Benchmark Framework

  • Abstract BaseDatabaseAdapter interface for consistent cross-database testing
  • BenchmarkRunner with timing, warmup, percentile stats (p50/p95/p99)
  • Categories: CRUD, Query (equality/range), Vector (k-NN), Graph (BFS)

Polyglot Persistence Benchmark

Compares ThemisDB's unified multi-model approach against polyglot persistence patterns:

  • Neo4j + ChromaDB: Graph + Vector workloads
  • PostgreSQL + Neo4j: Relational + Graph workloads
  • PostgreSQL + Neo4j + ChromaDB: Full multi-model scenarios

Database Adapters

  • themisdb_adapter.py: ThemisDB HTTP API adapter
  • postgresql_adapter.py: PostgreSQL with pgvector support
  • neo4j_adapter.py: Neo4j native graph operations
  • chromadb_adapter.py: ChromaDB vector/embedding storage

Reporting

  • HTML reports with Chart.js visualizations
  • Markdown export for docs, CSV for analysis
# Quick start
cd benchmarks/comparative
docker-compose -f docker-compose.benchmark.yml up -d
python scripts/run_benchmarks.py --all --databases themisdb,postgresql,mongodb
python scripts/generate_report.py --format html

# Polyglot persistence benchmark
python scripts/polyglot_benchmark.py --all

Files Added

benchmarks/comparative/
├── docker-compose.benchmark.yml
├── datasets/huggingface_loader.py
├── benchmarks/base_benchmark.py
├── adapters/{themisdb,postgresql,neo4j,chromadb}_adapter.py
├── scripts/{run_benchmarks,generate_report,setup_datasets,polyglot_benchmark}.py
└── config/{themisdb,postgresql,mongodb,redis}/*

Created from VS Code via the GitHub Pull Request extension.

Original prompt

Wir brauchen ein vergleichenden umfassenden Benchmark gegen etablierte Datenbanken mit standardizierten Test und Testdaten. Meine Idee ist wir installieren alle Kandidaten in einer Docker Container Umgebung und benutzen eine geeigneten Huggingface Datensatz. Schaue ob wir schon etwas passendes haben ansonsten erzeuge ein Konzept und entsprechende Test und Benchmarks.

Summary of Conversation History

Recent Agent Commands and Tool Results

  1. User Request: "Wir brauchen ein vergleichenden umfassenden Benchmark gegen etablierte Datenbanken mit standardizierten Test und Testdaten. Meine Idee ist wir installieren alle Kandidaten in einer Docker Container Umgebung und benutzen eine geeigneten Huggingface Datensatz. Schaue ob wir schon etwas passendes haben ansonsten erzeuge ein Konzept und entsprechende Test und Benchmarks."
    • Context: The user is looking to conduct a comprehensive benchmark against established databases using standardized tests and datasets, suggesting the use of Docker containers for installation and a suitable Hugging Face dataset for testing.

Results from Recent Tool Calls

  • Context Information: The current date is 2. Dezember 2025. The user is working on the sync-wiki.ps1 file in the ThemisDB repository, which is owned by makr-code and is currently on the main branch.
  • Recent Changes: The user has been addressing issues related to build failures, broken links in the generated GitHub wiki, and the need for a performance comparison against established databases.

Active Work When Token Budget Exceeded

  • The agent was actively working on generating a comprehensive benchmarking strategy against established databases when the token budget was exceeded. The user expressed the need for standardized tests and datasets, indicating a shift towards performance evaluation and comparison.

Connection to Overall User Goals

  • The recent operations connect to the user's overarching goal of improving the performance and reliability of the ThemisDB database system. By proposing a benchmarking strategy, the user aims to validate ThemisDB's capabilities against established databases, ensuring it meets performance standards and can compete effectively in the market. The focus on Docker for environment consistency and the use of Hugging Face datasets highlights a methodical approach to testing and validation.

This summary encapsulates the key points of the conversation, emphasizing the user's goals and the recent actions taken to achieve them.
TITLE: Benchmarking ThemisDB Against Established Databases

Created from VS Code via the GitHub Pull Request extension.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Create comprehensive benchmark for established databases Add comparative benchmark framework with Docker multi-database environment Dec 2, 2025
Copilot AI requested a review from makr-code December 2, 2025 17:46
@makr-code

Copy link
Copy Markdown
Owner

@copilot Wir brauchen auch einen Polyglot persistens (zB. Neo4j, chromadb, postgresql) gegen themisdb

Copilot AI commented Dec 2, 2025

Copy link
Copy Markdown
Contributor Author

@copilot Wir brauchen auch einen Polyglot persistens (zB. Neo4j, chromadb, postgresql) gegen themisdb

Added polyglot persistence benchmark in commit 86c326f. The new polyglot_benchmark.py compares ThemisDB's unified multi-model approach against:

  • Neo4j + ChromaDB for graph + vector workloads
  • PostgreSQL + Neo4j for relational + graph workloads
  • PostgreSQL + Neo4j + ChromaDB for full multi-model scenarios

Also added new adapters (postgresql_adapter.py, neo4j_adapter.py, chromadb_adapter.py) and ChromaDB service in docker-compose.

Usage:

python scripts/polyglot_benchmark.py --all

Copilot AI changed the title Add comparative benchmark framework with Docker multi-database environment Add comparative benchmark framework with Docker multi-database environment and polyglot persistence benchmark Dec 2, 2025
@makr-code
makr-code marked this pull request as ready for review December 2, 2025 18:12
@makr-code
makr-code merged commit 788cb31 into main Dec 2, 2025
makr-code added a commit that referenced this pull request Dec 6, 2025
…se-tests

Add comparative benchmark framework with Docker multi-database environment and polyglot persistence benchmark
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants