File tree 3 files changed +9
-20
lines changed
3 files changed +9
-20
lines changed Original file line number Diff line number Diff line change 21
21
branches : [ main ]
22
22
pull_request :
23
23
branches : [ main ]
24
+ paths :
25
+ - " .github/workflows/benchmark.yml"
24
26
workflow_dispatch :
25
27
28
+ permissions :
29
+ contents : read
30
+
26
31
jobs :
27
32
benchmark :
28
33
runs-on : ubuntu-latest
29
34
container : debian:12
30
35
31
36
strategy :
32
37
matrix :
33
- go : ['1.21 ']
38
+ go : ['1.22.7 ']
34
39
arch : ['amd64']
35
40
36
41
steps :
47
52
apt-get install -y build-essential git python3-pip
48
53
49
54
- name : Install Go ${{ matrix.go }} for Benchmarks
50
- if : >-
51
- success() &&
52
- matrix.arch == 'amd64' &&
53
- github.event_name == 'push' &&
54
- github.repository == 'apache/arrow-go' &&
55
- github.ref_name == 'main'
56
55
uses : actions/setup-go@v5
57
56
with :
58
57
go-version : ${{ matrix.go }}
62
61
- name : Run Benchmarks
63
62
if : >-
64
63
success() &&
65
- matrix.arch == 'amd64' &&
66
64
github.event_name == 'push' &&
67
65
github.repository == 'apache/arrow-go' &&
68
66
github.ref_name == 'main'
Original file line number Diff line number Diff line change 23
23
24
24
set -ex
25
25
26
- # simplistic semver comparison
27
- verlte () {
28
- [ " $1 " = " ` echo -e " $1 \n$2 " | sort -V | head -n1` " ]
29
- }
30
- verlt () {
31
- [ " $1 " = " $2 " ] && return 1 || verlte $1 $2
32
- }
33
-
34
- ver=` go env GOVERSION`
35
-
36
26
source_dir=${1}
37
27
38
28
export PARQUET_TEST_DATA=${1} /cpp/submodules/parquet-testing/data
@@ -51,4 +41,4 @@ if [[ "$2" = "-json" ]]; then
51
41
cat ${source_dir} /bench_* .dat | gobenchdata --json bench_stats.json
52
42
fi
53
43
54
- rm ${source_dir} /bench_* .dat
44
+ rm ${source_dir} /bench_* .dat
Original file line number Diff line number Diff line change @@ -124,4 +124,5 @@ def _transform_results(self) -> List[BenchmarkResult]:
124
124
125
125
if __name__ == "__main__" :
126
126
go_adapter = GoAdapter (result_fields_override = {"info" : {}})
127
- go_adapter ()
127
+ go_adapter ()
128
+
You can’t perform that action at this time.
0 commit comments