mirror of
https://github.com/tanrax/django-interactive-frameworks-benchmark
synced 2026-01-09 23:03:37 +01:00
Implemented the same alert system using 4 different Django technologies: - Django LiveView (WebSocket real-time) - Django SSR (traditional server-side rendering) - HTMX (AJAX partial updates) - Django Unicorn (reactive components) Added comprehensive performance testing suite: - Automated browser-based tests using Chrome DevTools - Performance metrics collection (response time, network overhead) - CSV data export for analysis - Matplotlib visualizations comparing all implementations Performance results show LiveView is fastest (9.35ms), followed by HTMX (16.48ms), Unicorn (26.76ms), and SSR (47.25ms). Updated README with detailed comparison tables, performance benchmarks, and reproduction instructions.
50 lines
1.3 KiB
HTML
50 lines
1.3 KiB
HTML
{% extends "alerts/ssr/base.html" %}
|
|
|
|
{% block title %}New Alert - SSR{% endblock %}
|
|
|
|
{% block content %}
|
|
<section class="section">
|
|
<div class="container">
|
|
<h1 class="title">Create New Alert</h1>
|
|
<h2 class="subtitle">Standard Django Form</h2>
|
|
|
|
<div class="box" style="max-width: 600px;">
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
|
|
<div class="field">
|
|
<label class="label">{{ form.type.label }}</label>
|
|
<div class="control">
|
|
<div class="select is-fullwidth">
|
|
{{ form.type }}
|
|
</div>
|
|
</div>
|
|
{% if form.type.errors %}
|
|
<p class="help is-danger">{{ form.type.errors.0 }}</p>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="field">
|
|
<label class="label">{{ form.description.label }}</label>
|
|
<div class="control">
|
|
{{ form.description }}
|
|
</div>
|
|
{% if form.description.errors %}
|
|
<p class="help is-danger">{{ form.description.errors.0 }}</p>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="field is-grouped">
|
|
<div class="control">
|
|
<button type="submit" class="button is-primary">Create Alert</button>
|
|
</div>
|
|
<div class="control">
|
|
<a href="{% url 'alerts:ssr_index' %}" class="button is-light">Cancel</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|