Skip to content

Commit

Permalink
Deploying to github_pages from @ a42b657 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
amrit110 committed Nov 28, 2024
1 parent 9b0912e commit fc9aa2e
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 1 deletion.
46 changes: 46 additions & 0 deletions _sources/api.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,49 @@ Common HTTP Status Codes
- ``400 Bad Request``: Invalid parameters
- ``422 Unprocessable Entity``: Invalid request body
- ``500 Internal Server Error``: Server-side error


API Benchmark
-------------

The following table shows latency benchmarks for the /recommend API endpoint. Tests were run with different combinations of query parameters and reranking options. Each request was made sequentially to measure individual request latency accurately.
The summary statistics are generating from 50 runs with a timeout of 30 seconds w/ no delay between each request.

.. list-table::
:header-rows: 1

* - Test Case
- Mean (s)
- Median (s)
- Std Dev (s)
- Min (s)
- Max (s)
- Sample Size
* - Query only
- 6.686
- 5.985
- 2.336
- 4.504
- 19.362
- 48
* - Query w/ reranking
- 8.729
- 8.547
- 1.964
- 5.249
- 14.133
- 50
* - Query w/ location
- 6.795
- 6.260
- 3.560
- 3.277
- 27.860
- 46
* - Query w/ location and reranking
- 8.197
- 7.934
- 1.867
- 5.720
- 13.688
- 50
54 changes: 54 additions & 0 deletions api.html
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,59 @@ <h2>Common HTTP Status Codes<a class="headerlink" href="#common-http-status-code
<li><p><code class="docutils literal notranslate"><span class="pre">500</span> <span class="pre">Internal</span> <span class="pre">Server</span> <span class="pre">Error</span></code>: Server-side error</p></li>
</ul>
</section>
<section id="api-benchmark">
<h2>API Benchmark<a class="headerlink" href="#api-benchmark" title="Link to this heading"></a></h2>
<p>The following table shows latency benchmarks for the /recommend API endpoint. Tests were run with different combinations of query parameters and reranking options. Each request was made sequentially to measure individual request latency accurately.
The summary statistics are generating from 50 runs with a timeout of 30 seconds w/ no delay between each request.</p>
<div class="table-wrapper docutils container">
<table class="docutils align-default">
<thead>
<tr class="row-odd"><th class="head"><p>Test Case</p></th>
<th class="head"><p>Mean (s)</p></th>
<th class="head"><p>Median (s)</p></th>
<th class="head"><p>Std Dev (s)</p></th>
<th class="head"><p>Min (s)</p></th>
<th class="head"><p>Max (s)</p></th>
<th class="head"><p>Sample Size</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Query only</p></td>
<td><p>6.686</p></td>
<td><p>5.985</p></td>
<td><p>2.336</p></td>
<td><p>4.504</p></td>
<td><p>19.362</p></td>
<td><p>48</p></td>
</tr>
<tr class="row-odd"><td><p>Query w/ reranking</p></td>
<td><p>8.729</p></td>
<td><p>8.547</p></td>
<td><p>1.964</p></td>
<td><p>5.249</p></td>
<td><p>14.133</p></td>
<td><p>50</p></td>
</tr>
<tr class="row-even"><td><p>Query w/ location</p></td>
<td><p>6.795</p></td>
<td><p>6.260</p></td>
<td><p>3.560</p></td>
<td><p>3.277</p></td>
<td><p>27.860</p></td>
<td><p>46</p></td>
</tr>
<tr class="row-odd"><td><p>Query w/ location and reranking</p></td>
<td><p>8.197</p></td>
<td><p>7.934</p></td>
<td><p>1.867</p></td>
<td><p>5.720</p></td>
<td><p>13.688</p></td>
<td><p>50</p></td>
</tr>
</tbody>
</table>
</div>
</section>
</section>

</article>
Expand Down Expand Up @@ -622,6 +675,7 @@ <h2>Common HTTP Status Codes<a class="headerlink" href="#common-http-status-code
<li><a class="reference internal" href="#service-information">Service Information</a></li>
<li><a class="reference internal" href="#error-responses">Error Responses</a></li>
<li><a class="reference internal" href="#common-http-status-codes">Common HTTP Status Codes</a></li>
<li><a class="reference internal" href="#api-benchmark">API Benchmark</a></li>
</ul>
</li>
</ul>
Expand Down
Loading

0 comments on commit fc9aa2e

Please sign in to comment.