138138 .n { color : # f78c6c ; } /* number */
139139 .c { color : # 676e95 ; } /* comment */
140140
141- /* ── Benchmarks ── */
142- .benchmarks-img {
143- max-width : 800px ; margin : 32px auto;
144- border : 1px solid var (--border-card ); border-radius : var (--radius-lg );
145- overflow : hidden;
146- }
147- .benchmarks-img img { width : 100% ; display : block; }
148- .benchmarks-snapshot {
149- max-width : 520px ; margin : 0 auto; text-align : left;
150- background : var (--bg-card ); padding : 24px ; border-radius : var (--radius-md );
151- border : 1px solid var (--border-card );
152- }
153- .benchmarks-snapshot h4 {
154- color : var (--text-primary ); margin-bottom : 14px ; font-size : 15px ;
155- }
156- .benchmarks-snapshot .bar {
157- display : flex; align-items : center; gap : 10px ; margin-bottom : 8px ;
158- }
159- .benchmarks-snapshot .bar .name {
160- width : 160px ; font-size : 13px ; font-family : var (--font-mono ); color : var (--text-secondary );
161- }
162- .benchmarks-snapshot .bar .fill {
163- height : 8px ; border-radius : 4px ; background : var (--accent ); transition : width 0.6s ease;
164- }
165- .benchmarks-snapshot .bar .rps {
166- font-size : 13px ; font-family : var (--font-mono ); color : var (--text-primary ); min-width : 90px ;
167- text-align : right;
168- }
169- .benchmarks-link { margin-top : 20px ; font-size : 13px ; text-align : center; }
170-
171141 /* ── Config Table ── */
172142 .config-table {
173143 width : 100% ; border-collapse : collapse; font-size : 14px ; margin-top : 24px ;
206176 .hero-stats { gap : 20px ; }
207177 .config-table { font-size : 12px ; }
208178 .config-table td , .config-table th { padding : 8px 10px ; }
209- .benchmarks-snapshot .bar .name { width : 100px ; }
210179 }
211180 </ style >
212181</ head >
222191 < div class ="nav-links ">
223192 < a href ="#features "> Features</ a >
224193 < a href ="#examples "> Examples</ a >
225- < a href ="#benchmarks "> Benchmarks</ a >
226194 < a href ="https://github.com/BackendStack21/0http " target ="_blank "> GitHub</ a >
227195 < a href ="#install " class ="nav-cta "> Install</ a >
228196 </ div >
@@ -435,41 +403,6 @@ <h2>Quick Start</h2>
435403 </ div >
436404</ section >
437405
438- <!-- Benchmarks -->
439- < section id ="benchmarks " class ="section ">
440- < div class ="container ">
441- < div class ="section-label "> Performance</ div >
442- < h2 > Benchmarks</ h2 >
443- < p class ="lead "> 0http is designed for extreme speed from the ground up.</ p >
444-
445- < div class ="benchmarks-img ">
446- < img src ="Benchmarks.png " alt ="0http Performance Benchmarks " />
447- </ div >
448-
449- < div class ="benchmarks-snapshot ">
450- < h4 > Snapshot — MacBook Pro i9, Node.js v12</ h4 >
451- < div class ="bar ">
452- < span class ="name "> 0http (seq)</ span >
453- < span class ="fill " style ="width:100% "> </ span >
454- < span class ="rps "> ~88K req/s</ span >
455- </ div >
456- < div class ="bar ">
457- < span class ="name "> 0http (fmw)</ span >
458- < span class ="fill " style ="width:99% "> </ span >
459- < span class ="rps "> ~87K req/s</ span >
460- </ div >
461- < div class ="bar ">
462- < span class ="name "> restana</ span >
463- < span class ="fill " style ="width:83% "> </ span >
464- < span class ="rps "> ~73K req/s</ span >
465- </ div >
466- < div class ="benchmarks-link ">
467- < a href ="https://web-frameworks-benchmark.netlify.app/result?f=0http,koa,fastify,express,restana " target ="_blank "> View latest independent results →</ a >
468- </ div >
469- </ div >
470- </ div >
471- </ section >
472-
473406<!-- Configuration -->
474407< section id ="config " class ="section ">
475408 < div class ="container ">
@@ -531,7 +464,7 @@ <h2>Configuration</h2>
531464 } )
532465 } , { threshold : 0.1 , rootMargin : '0px 0px -40px 0px' } )
533466
534- document . querySelectorAll ( '.feature-card, .capability-item, .example-card, .benchmarks-snapshot ' ) . forEach ( el => {
467+ document . querySelectorAll ( '.feature-card, .capability-item, .example-card' ) . forEach ( el => {
535468 el . style . opacity = '0'
536469 el . style . transform = 'translateY(20px)'
537470 el . style . transition = 'opacity 0.6s ease, transform 0.6s ease'
@@ -540,7 +473,7 @@ <h2>Configuration</h2>
540473
541474 // Trigger initial animation for visible elements
542475 setTimeout ( ( ) => {
543- document . querySelectorAll ( '.feature-card, .capability-item, .example-card, .benchmarks-snapshot ' ) . forEach ( el => {
476+ document . querySelectorAll ( '.feature-card, .capability-item, .example-card' ) . forEach ( el => {
544477 const rect = el . getBoundingClientRect ( )
545478 if ( rect . top < window . innerHeight ) {
546479 el . style . opacity = '1'
0 commit comments