Skip to content

Merge pull request #9 from PhasesResearchLab/main #46

Merge pull request #9 from PhasesResearchLab/main

Merge pull request #9 from PhasesResearchLab/main #46

Workflow file for this run

name: Small Benchmarks
on: [push]
jobs:
benchmark:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
platform: [ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install wheel flask
python -m pip install -e .
- name: Benchmark KS2022
run: python -c "from pysipfenn.descriptorDefinitions import KS2022; KS2022.profile(test='JVASP-10001', nRuns=100); KS2022.profile(test='diluteNiAlloy', nRuns=100)"
- name: Benchmark Ward2017
run: python -c "from pysipfenn.descriptorDefinitions import Ward2017; Ward2017.profile(test='JVASP-10001', nRuns=100); Ward2017.profile(test='diluteNiAlloy', nRuns=100)"
- name: Benchmark KS2022 dilute featurizer
run: python -c "from pysipfenn.descriptorDefinitions import KS2022_dilute; KS2022_dilute.profile(test='diluteNiAlloy', nRuns=250)"