Skip to content

Commit a679c7f

Browse files
authored
Merge pull request #69 from JuliaPsychometricsBazaar/fix-benchmarks2
Fix benchmarks2
2 parents bd53662 + 338feb2 commit a679c7f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/benchmark_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ jobs:
3838
echo $PATH
3939
ls -l ~/.julia/bin
4040
mkdir results
41-
benchpkg ${{ steps.extract-package-name.outputs.package_name }} --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --url=${{ github.event.repository.clone_url }} --bench-on="${{github.event.repository.default_branch}}" --output-dir=results/ --tune
41+
benchpkg ${{ steps.extract-package-name.outputs.package_name }} --add 'StatsBase,FittedItemBanks,PsychometricsBazaarBase' --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --url=${{ github.event.repository.clone_url }} --bench-on="${{github.event.repository.default_branch}}" --output-dir=results/ --tune
4242
- name: Create plots from benchmarks
4343
run: |
4444
mkdir -p plots
45-
benchpkgplot ${{ steps.extract-package-name.outputs.package_name }} --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --npart=10 --format=png --input-dir=results/ --output-dir=plots/
45+
benchpkgplot ${{ steps.extract-package-name.outputs.package_name }} --add 'StatsBase,FittedItemBanks,PsychometricsBazaarBase' --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --npart=10 --format=png --input-dir=results/ --output-dir=plots/
4646
- name: Upload plot as artifact
4747
uses: actions/upload-artifact@v2
4848
with:
4949
name: plots
5050
path: plots
5151
- name: Create markdown table from benchmarks
5252
run: |
53-
benchpkgtable ${{ steps.extract-package-name.outputs.package_name }} --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --input-dir=results/ --ratio > table.md
53+
benchpkgtable ${{ steps.extract-package-name.outputs.package_name }} --add 'StatsBase,FittedItemBanks,PsychometricsBazaarBase' --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --input-dir=results/ --ratio > table.md
5454
echo '### Benchmark Results' > body.md
5555
echo '' >> body.md
5656
echo '' >> body.md

benchmark/benchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ SUITE["next_item_rules"] = BenchmarkGroup()
2121
#prepare_0(ability_estimator)
2222
function prepare_4pls(group)
2323
rng = Xoshiro(42)
24-
(; item_bank, abilities, responses) = dummy_full(
24+
(item_bank, abilities, responses) = dummy_full(
2525
rng,
2626
SimpleItemBankSpec(StdModel4PL(), OneDimContinuousDomain(), BooleanResponse());
2727
num_questions = 20,

0 commit comments

Comments
 (0)