Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
criterion 0.2.0 - Docs.rs
[go: Go Back, main page]

criterion 0.2.0

Statistics-driven micro-benchmarking library
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>{{title}} - Criterion.rs</title>
    <style type="text/css">
        body {
            font: 14px Helvetica Neue;
            text-rendering: optimizelegibility;
        }

        .body {
            width: 960px;
            margin: auto;
        }

        th {
            font-weight: 200
        }

        th,
        td {
            padding-right: 3px;
            padding-bottom: 3px;
        }

        a:link {
            color: #1F78B4;
            text-decoration: none;
        }

        th.ci-bound {
            opacity: 0.6
        }

        td.ci-bound {
            opacity: 0.5
        }

        .stats {
            width: 80%;
            margin: auto;
            display: flex;
        }

        .additional_stats {
            flex: 0 0 60%
        }

        .additional_plots {
            flex: 1
        }

        h2 {
            font-size: 36px;
            font-weight: 300;
        }

        h3 {
            font-size: 24px;
            font-weight: 300;
        }

        #footer {
            height: 40px;
            background: #888;
            color: white;
            font-size: larger;
            font-weight: 300;
        }

        #footer a {
            color: white;
            text-decoration: underline;
        }

        #footer p {
            text-align: center
        }
    </style>
</head>

<body>
    <div class="body">
        <h2>{{title}}</h2>
        <div class="absolute">
            <section class="plots">
                <table width="100%">
                    <tbody>
                        <tr>
                            <td>
                                <a href="pdf.svg">
                                    <img src="pdf_small.svg" alt="PDF of Slope" width="{{thumbnail_width}}" height="{{thumbnail_height}}" />
                                </a>
                            </td>
                            <td>
                                <a href="regression.svg">
                                    <img src="regression_small.svg" alt="Regression" width="{{thumbnail_width}}" height="{{thumbnail_height}}" />
                                </a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </section>
            <section class="stats">
                <div class="additional_stats">
                    <h4>Additional Statistics:</h4>
                    <table>
                        <thead>
                            <tr>
                                <th></th>
                                <th title="{{confidence}} confidence level" class="ci-bound">Lower bound</th>
                                <th>Estimate</th>
                                <th title="{{confidence}} confidence level" class="ci-bound">Upper bound</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Slope</td>
                                <td class="ci-bound">{{slope.lower}}</td>
                                <td>{{slope.point}}</td>
                                <td class="ci-bound">{{slope.upper}}</td>
                            </tr>
                            {{#if throughput}}
                            <tr>
                                <td>Throughput</td>
                                <td class="ci-bound">{{throughput.lower}}</td>
                                <td>{{throughput.point}}</td>
                                <td class="ci-bound">{{throughput.upper}}</td>
                            </tr>
                            {{/if}}
                            <tr>
                                <td>R&#xb2;</td>
                                <td class="ci-bound">{{r2.lower}}</td>
                                <td>{{r2.point}}</td>
                                <td class="ci-bound">{{r2.upper}}</td>
                            </tr>
                            <tr>
                                <td>Mean</td>
                                <td class="ci-bound">{{mean.lower}}</td>
                                <td>{{mean.point}}</td>
                                <td class="ci-bound">{{mean.upper}}</td>
                            </tr>
                            <tr>
                                <td title="Standard Deviation">Std. Dev.</td>
                                <td class="ci-bound">{{std_dev.lower}}</td>
                                <td>{{std_dev.point}}</td>
                                <td class="ci-bound">{{std_dev.upper}}</td>
                            </tr>
                            <tr>
                                <td>Median</td>
                                <td class="ci-bound">{{median.lower}}</td>
                                <td>{{median.point}}</td>
                                <td class="ci-bound">{{median.upper}}</td>
                            </tr>
                            <tr>
                                <td title="Median Absolute Deviation">MAD</td>
                                <td class="ci-bound">{{mad.lower}}</td>
                                <td>{{mad.point}}</td>
                                <td class="ci-bound">{{mad.upper}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                {{#if additional_plots}}
                <div class="additional_plots">
                    <h4>Additional Plots:</h4>
                    <ul>
                        {{#each additional_plots}}
                        <li>
                            <a href="{{this.url}}">{{this.name}}</a>
                        </li>
                        {{/each}}
                    </ul>
                </div>
                {{/if}}
            </section>
        </div>
        {{#if comparison}}
        <section class="plots">
            <h3>Change Since Previous Benchmark</h3>
            <div class="relative">
                <table width="100%">
                    <tbody>
                        <tr>
                            <td>
                                <a href="../both/pdf.svg">
                                    <img src="relative_pdf_small.svg" alt="PDF Comparison" width="{{thumbnail_width}}" height="{{thumbnail_height}}" />
                                </a>
                            </td>
                            <td>
                                <a href="../both/regression.svg">
                                    <img src="relative_regression_small.svg" alt="Regression Comparison" width="{{thumbnail_width}}" height="{{thumbnail_height}}"/>
                                </a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </section>
        <section class="stats">
            <div class="additional_stats">
                <h4>Additional Statistics:</h4>
                <table>
                    <thead>
                        <tr>
                            <th></th>
                            <th title="{{confidence}} confidence level" class="ci-bound">Lower bound</th>
                            <th>Estimate</th>
                            <th title="{{confidence}} confidence level" class="ci-bound">Upper bound</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Change</td>
                            <td class="ci-bound">{{comparison.change.lower}}</td>
                            <td>{{comparison.change.point}}</td>
                            <td class="ci-bound">{{comparison.change.upper}}</td>
                            <td>(p = {{comparison.p_value}} {{comparison.inequality}} {{comparison.significance_level}})</td>
                        </tr>
                    </tbody>
                </table>
                {{comparison.explanation}}
            </div>
            {{#if comparison.additional_plots}}
            <div class="additional_plots">
                <h4>Additional Plots:</h4>
                <ul>
                    {{#each comparison.additional_plots}}
                    <li>
                        <a href="{{this.url}}">{{this.name}}</a>
                    </li>
                    {{/each}}
                </ul>
            </div>
            {{/if}}
        </section>
        {{/if}}
    </div>
    <div id="footer">
        <p>This report was generated by
            <a href="https://github.com/japaric/criterion.rs">Criterion.rs</a>, a statistics-driven benchmarking library in Rust.</p>
    </div>
</body>

</html>