Skip to content

Commit

Permalink
PHPLIB-1259 Enable Opcache and add timeout on benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Nov 2, 2023
1 parent 22e99b8 commit d5ad0cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
coverage: "none"
extensions: "mongodb-${{ ENV.DRIVER_VERSION }}"
php-version: "${{ env.PHP_VERSION }}"
ini-values: "extension=opcache.so, opcache.enable_cli=1, opcache.file_cache=${{ runner.temp }}/php-opcache"

- name: "Show driver information"
run: "php --ri mongodb"
Expand Down
1 change: 1 addition & 0 deletions benchmark/phpbench.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"runner.bootstrap": "vendor/autoload.php",
"runner.file_pattern": "*Bench.php",
"runner.path": "src",
"runner.timeout": 60,
"runner.php_config": { "memory_limit": "1G" },
"runner.iterations": 3
}

0 comments on commit d5ad0cf

Please sign in to comment.