-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add parallel benchmark using AMP async framework
- Loading branch information
Showing
5 changed files
with
58 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,14 +64,15 @@ jobs: | |
- name: "Install dependencies with Composer" | ||
uses: "ramsey/[email protected]" | ||
with: | ||
composer-options: "--no-suggest" | ||
composer-options: "--no-suggest --working-dir=./benchmark" | ||
|
||
- name: "Run phpbench" | ||
working-directory: "./benchmark" | ||
run: "vendor/bin/phpbench run --report=aggregate --report=bar_chart_time --report=env --output html" | ||
|
||
- name: Upload HTML report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: phpbench-${{ github.sha }}.html | ||
path: .phpbench/html/index.html | ||
path: ./benchmark/.phpbench/html/index.html | ||
retention-days: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "mongodb/mongodb-benchmark", | ||
"type": "project", | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "../" | ||
} | ||
], | ||
"require": { | ||
"php": ">=8.1", | ||
"amphp/parallel-functions": "^1.1", | ||
"mongodb/mongodb": "@dev", | ||
"phpbench/phpbench": "^1.2" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"MongoDB\\Benchmark\\": "./" | ||
} | ||
}, | ||
"scripts": { | ||
"benchmark": "phpbench run --report=aggregate" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters