Skip to content

feat: issue 305: add streamed response performance benchmarks#378

Merged
imDarshanGK merged 6 commits into
imDarshanGK:mainfrom
SagarSawlani:feature/performance-benchmarks-for-streamed-responses
Jun 12, 2026
Merged

feat: issue 305: add streamed response performance benchmarks#378
imDarshanGK merged 6 commits into
imDarshanGK:mainfrom
SagarSawlani:feature/performance-benchmarks-for-streamed-responses

Conversation

@SagarSawlani

Copy link
Copy Markdown
Contributor
  1. Performance Benchmarks for Chat Responses
    Backend Tracking: Computes Time to First Token (TTFT), Total Duration, Token Count, and System RAM Usage (using psutil) for each stream request.
    Database Schema Migration: Updates the SQLite messages table schema with a benchmarks column to persist these metrics.
    Frontend Stats Popover: Adds a performance icon button (zigzag chart) below assistant responses. Hovering over the button displays a statistics card directly to its right, cleanly aligned with the button to prevent layout shifting, scrolling, or flickering.
    RAM Explanation Tooltip: Includes a small circled ⓘ info icon next to the RAM metric. Hovering over it explains: "Total system memory in use across all processes, not just the LLM."
image
  1. Copy Response to Clipboard
    Replaced the single-message export button under assistant responses with a modern Copy button.
    Clicking it copies the raw assistant message content to the clipboard and shows a green checkmark feedback icon temporarily.
  2. Restored Prompt Template Shortcut
    Re-added the plus circle button (+) next to the chat text area.
    Clicking the plus button opens a dropdown to trigger the Use Prompt Template modal.
    Includes support for selecting a template chip and updates the send button states so that users can submit template-based requests.

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

@SagarSawlani is attempting to deploy a commit to the Darshan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@imDarshanGK

Copy link
Copy Markdown
Owner

@SagarSawlani resolve conflicts

@SagarSawlani

Copy link
Copy Markdown
Contributor Author

@imDarshanGK Done. Can you just verify once

@imDarshanGK

Copy link
Copy Markdown
Owner

@SagarSawlani resolve conflict

@SagarSawlani

Copy link
Copy Markdown
Contributor Author

Hi @imDarshanGK I've just resolved the merge conflicts in api.js. Could you please take a look when you have a moment? Since api.js gets updated frequently, merging this soon would help prevent another round of conflicts. Thank you!

@imDarshanGK

Copy link
Copy Markdown
Owner

@SagarSawlani issue number

@SagarSawlani

SagarSawlani commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

@SagarSawlani issue number

#305

@imDarshanGK imDarshanGK added SSoC26 Part of Social Summer of Code 2026 Medium Feature or backend work with moderate scope labels Jun 12, 2026
@imDarshanGK imDarshanGK merged commit 1cb1d8f into imDarshanGK:main Jun 12, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Medium Feature or backend work with moderate scope SSoC26 Part of Social Summer of Code 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants