-
-
Notifications
You must be signed in to change notification settings - Fork 586
43 lines (34 loc) · 1006 Bytes
/
benchmark.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Benchmarks
on:
pull_request:
push:
branches:
- master
jobs:
phpbench:
name: "PHPBench"
runs-on: "ubuntu-20.04"
strategy:
matrix:
php-version:
- "7.2"
- "8.0"
- "8.1"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
- name: Run performance benchmarks
run: |
vendor/bin/phpbench run tests/Benchmark/Performance --report=aggregate
- name: Check JSON serialiser memory leaks
run: |
vendor/bin/phpbench run tests/Benchmark/Memory/Json* --report=memory --iterations=1
- name: Check XML serialiser memory leaks
run: |
vendor/bin/phpbench run tests/Benchmark/Memory/Xml* --report=memory --iterations=1