Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up a benchmark suite #794

Closed
frostming opened this issue Dec 12, 2021 · 2 comments · Fixed by #795
Closed

Set up a benchmark suite #794

frostming opened this issue Dec 12, 2021 · 2 comments · Fixed by #795
Labels
⭐ enhancement Improvements for existing features

Comments

@frostming
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Compare with pipenv and poetry since these two package managers provide the most similar functionnalities to pdm

@frostming frostming added the ⭐ enhancement Improvements for existing features label Dec 12, 2021
@frostming frostming mentioned this issue Dec 13, 2021
2 tasks
@pawamoy
Copy link
Sponsor Contributor

pawamoy commented Dec 13, 2021

Just wanted to plot it:

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>

<figure class="highcharts-figure">
    <div id="container"></div>
</figure>

<script>
Highcharts.chart('container', {
    chart: {
        type: 'column'
    },
    title: {
        text: 'Benchmark'
    },
    xAxis: {
        categories: [
            'Lock',
            'Lock+cache',
            'Install',
            'Add',
            'Add+cache'
        ],
        crosshair: true
    },
    yAxis: {
        min: 0,
        title: {
            text: 'Time (s)'
        }
    },
    tooltip: {
        headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
        pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
            '<td style="padding:0"><b>{point.y:.1f}s</b></td></tr>',
        footerFormat: '</table>',
        shared: true,
        useHTML: true
    },
    plotOptions: {
        column: {
            pointPadding: 0.2,
            borderWidth: 0
        }
    },
    series: [{
        name: 'Pipenv',
        data: [46.43, 55.81, 25.16, 84.44, 83.33]

    }, {
        name: 'Poetry',
        data: [76.95, 39.08, 17.82, 37.24, 43.90]

    }, {
        name: 'PDM',
        data: [27.56, 21.91, 12.16, 37.26, 26.84]

    }]
});
</script>

https://jsfiddle.net/ku2vc7bj/

@frostming
Copy link
Collaborator Author

@pawamoy Thanks! Care to send a PR to make the chart interactive in https://pdm.fming.dev/dev/benchmark/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants