-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(fix): Attempt to fix release.yml (#2293)
Signed-off-by: Dave Henderson <[email protected]>
- Loading branch information
1 parent
cec14a0
commit a97ddf1
Showing
4 changed files
with
146 additions
and
116 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
permissions: | ||
contents: write | ||
pull-requests: write | ||
packages: write | ||
|
||
jobs: | ||
deploy-alpine: | ||
|
@@ -21,6 +22,13 @@ jobs: | |
with: | ||
app-id: ${{ vars.APP_ID }} | ||
private-key: ${{ secrets.PRIVATE_KEY }} | ||
- name: install lab | ||
env: | ||
GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
run: | | ||
gh release download --repo zaquestion/lab v0.25.1 -p lab_0.25.1_linux_amd64.tar.gz | ||
tar -xzf lab_0.25.1_linux_amd64.tar.gz | ||
./lab --version | ||
- uses: actions/checkout@v4 | ||
- name: Retrieve release artifacts | ||
id: artifacts | ||
|
@@ -33,44 +41,51 @@ jobs: | |
# need gomplate to template the APKBUILD! | ||
gh release download ${TAG_NAME} --skip-existing -p gomplate_linux-amd64 | ||
chmod 755 gomplate_linux-amd64 | ||
env: | ||
GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
- name: checkout alpinelinux/aports | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" | ||
git clone https://gitlab.alpinelinux.org/hairyhenderson/aports.git | ||
git remote add upstream https://gitlab.alpinelinux.org/alpine/aports.git | ||
set -ex | ||
git config --global user.name "${{ github.actor }}" | ||
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" | ||
git clone -v https://gitlab.alpinelinux.org/hairyhenderson/aports.git | ||
cd aports | ||
# note: this token expires, so needs to be rotated periodically | ||
git remote set-url origin "https://oauth2:${{ secrets.GITLAB_ACCESS_TOKEN }}@gitlab.alpinelinux.org/hairyhenderson/aports.git" | ||
git remote add upstream https://gitlab.alpinelinux.org/alpine/aports.git | ||
git checkout master | ||
- name: update fork | ||
run: | | ||
set -ex | ||
cd aports | ||
git fetch upstream | ||
git fetch -v upstream | ||
git rebase upstream/master | ||
git push | ||
- name: upgrade gomplate in aports | ||
run: | | ||
set -ex | ||
export VERSION=${TAG_NAME#v} | ||
cd aports/community/gomplate | ||
git checkout -b upgrade-gomplate-aport-${VERSION} | ||
export VERSION=${TAG_NAME#v} | ||
export ENVJSON="{\"version\": \"${VERSION}\", \"sha512\": \"${{ steps.artifacts.outputs.sha512sum }}\" }" | ||
gomplate_linux-amd64 -c .=env:///ENVJSON\?type=application/json \ | ||
../../../gomplate_linux-amd64 -c .=env:///ENVJSON\?type=application/json \ | ||
-f ../../../packaging/alpine/APKBUILD.tmpl \ | ||
-o APKBUILD | ||
git add APKBUILD | ||
git commit -S -sm "community/gomplate: upgrade to ${VERSION}" | ||
git commit -sm "community/gomplate: upgrade to ${VERSION}" | ||
git push -u origin upgrade-gomplate-aport-${VERSION} | ||
# open a PR | ||
lab mr create --allow-collaboration \ | ||
../../../lab mr create --allow-collaboration \ | ||
-m "community/gomplate: upgrade to ${VERSION}" \ | ||
-m "https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" | ||
deploy-homebrew: | ||
runs-on: ubuntu-latest | ||
# run on macOS - this doesn't work in Linuxbrew | ||
runs-on: macos-latest | ||
environment: | ||
name: homebrew | ||
env: | ||
|
@@ -81,16 +96,6 @@ jobs: | |
with: | ||
app-id: ${{ vars.APP_ID }} | ||
private-key: ${{ secrets.PRIVATE_KEY }} | ||
# - name: Retrieve release artifacts | ||
# id: artifacts | ||
# run: | | ||
# # need the checksum and archive | ||
# gh release download ${TAG_NAME} -p "${TAG_NAME}.sha*" | ||
|
||
# echo "sha256sum=$(cat ${TAG_NAME}.sha256)" >> $GITHUB_OUTPUT | ||
# echo "archive=https://github.com/${{ github.repository }}/archive/refs/tags/${TAG_NAME}.tar.gz" >> $GITHUB_OUTPUT | ||
# env: | ||
# GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
- name: Set up Homebrew | ||
id: set-up-homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
|
@@ -99,4 +104,85 @@ jobs: | |
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
formulae: gomplate | ||
fork: false | ||
fork: true | ||
deploy-docker: | ||
runs-on: ubuntu-latest | ||
env: | ||
TAG_NAME: ${{ github.event.release.tag_name }} | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/[email protected] | ||
with: | ||
version: v0.19.3 | ||
driver-opts: | | ||
image=moby/buildkit:buildx-stable-1 | ||
network=host | ||
- name: Available platforms | ||
run: echo {{ `${{ steps.buildx.outputs.platforms }}` }} | ||
- run: docker info && docker version | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/create-github-app-token@v1 | ||
id: app-token | ||
with: | ||
app-id: ${{ vars.APP_ID }} | ||
private-key: ${{ secrets.PRIVATE_KEY }} | ||
- name: Login to GHCR | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ steps.app-token.outputs.token }} | ||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
# NOTE: DOCKERHUB_TOKEN and DOCKERHUB_USERNAME must be present in https://github.com/hairyhenderson/gomplate/settings | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build & Push | ||
run: | | ||
set -ex | ||
# seed from the last ghcr.io image(s) | ||
docker pull ghcr.io/hairyhenderson/gomplate:latest | ||
docker pull ghcr.io/hairyhenderson/gomplate:alpine | ||
export srcrepo=ghcr.io/${{ github.repository}} | ||
export COMMIT=${{ github.sha }} | ||
make docker-multi COMMIT=${COMMIT} DOCKER_REPO=${srcrepo} BUILDX_ACTION=--push | ||
set -x | ||
export repo=${srcrepo} | ||
export git_tag=${TAG_NAME} | ||
export major_version=${git_tag%\.*} | ||
docker buildx imagetools create -t ${repo}:stable ${srcrepo}:latest | ||
docker buildx imagetools create -t ${repo}:${git_tag} ${srcrepo}:latest | ||
docker buildx imagetools create -t ${repo}:${major_version} ${srcrepo}:latest | ||
docker buildx imagetools create -t ${repo}:stable-alpine ${srcrepo}:alpine | ||
docker buildx imagetools create -t ${repo}:${git_tag}-alpine ${srcrepo}:alpine | ||
docker buildx imagetools create -t ${repo}:${major_version}-alpine ${srcrepo}:alpine | ||
# and now DockerHub (if we don't get rate-limited) | ||
export repo=gomplate/gomplate | ||
docker buildx imagetools create -t ${repo}:stable ${srcrepo}:latest | ||
docker buildx imagetools create -t ${repo}:${git_tag} ${srcrepo}:latest | ||
docker buildx imagetools create -t ${repo}:${major_version} ${srcrepo}:latest | ||
docker buildx imagetools create -t ${repo}:stable-alpine ${srcrepo}:alpine | ||
docker buildx imagetools create -t ${repo}:${git_tag}-alpine ${srcrepo}:alpine | ||
docker buildx imagetools create -t ${repo}:${major_version}-alpine ${srcrepo}:alpine | ||
export repo=hairyhenderon/gomplate | ||
docker buildx imagetools create -t ${repo}:stable ${srcrepo}:latest | ||
docker buildx imagetools create -t ${repo}:${git_tag} ${srcrepo}:latest | ||
docker buildx imagetools create -t ${repo}:${major_version} ${srcrepo}:latest | ||
docker buildx imagetools create -t ${repo}:stable-alpine ${srcrepo}:alpine | ||
docker buildx imagetools create -t ${repo}:${git_tag}-alpine ${srcrepo}:alpine | ||
docker buildx imagetools create -t ${repo}:${major_version}-alpine ${srcrepo}:alpine |
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,38 @@ | ||
# Maintainer: Dave Henderson <[email protected]> | ||
pkgname=gomplate | ||
pkgver={{.version}} | ||
pkgrel=0 | ||
pkgdesc="A versatile Go template processor" | ||
url="https://github.com/hairyhenderson/gomplate" | ||
arch="all" | ||
license="MIT" | ||
depends="ca-certificates" | ||
makedepends="go" | ||
options="net" | ||
source="$pkgname-$pkgver.tar.gz::https://github.com/hairyhenderson/gomplate/archive/v$pkgver.tar.gz" | ||
|
||
export GOFLAGS="$GOFLAGS -trimpath -modcacherw" | ||
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" | ||
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" | ||
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" | ||
|
||
build() { | ||
# CGO needs to be able to be enabled for -buildmode=pie, setting it to an | ||
# empty string is a workaround for now. | ||
# See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15809 | ||
make build \ | ||
CGO_ENABLED= \ | ||
VERSION="$pkgver" \ | ||
COMMIT="unknown" | ||
} | ||
|
||
check() { | ||
# Note: make test (that runs go test -race) doesn't work. | ||
go test -v | ||
} | ||
|
||
package() { | ||
install -D -m 755 bin/gomplate "$pkgdir"/usr/bin/gomplate | ||
} | ||
|
||
sha512sums="{{.sha512}} gomplate-{{.version}}.tar.gz" |
a97ddf1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
BenchmarkFlatten/depth-1_[]int([1_2_3])
170.4
ns/op 168 B/op 5 allocs/op165.7
ns/op 168 B/op 5 allocs/op1.03
BenchmarkFlatten/depth-1_[]int([1_2_3]) - ns/op
170.4
ns/op165.7
ns/op1.03
BenchmarkFlatten/depth-1_[]int([1_2_3]) - B/op
168
B/op168
B/op1
BenchmarkFlatten/depth-1_[]int([1_2_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth-1_[3]int([1_2_3])
117.1
ns/op 144 B/op 2 allocs/op117.2
ns/op 144 B/op 2 allocs/op1.00
BenchmarkFlatten/depth-1_[3]int([1_2_3]) - ns/op
117.1
ns/op117.2
ns/op1.00
BenchmarkFlatten/depth-1_[3]int([1_2_3]) - B/op
144
B/op144
B/op1
BenchmarkFlatten/depth-1_[3]int([1_2_3]) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3])
210.3
ns/op 208 B/op 5 allocs/op203.4
ns/op 208 B/op 5 allocs/op1.03
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) - ns/op
210.3
ns/op203.4
ns/op1.03
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) - B/op
208
B/op208
B/op1
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3])
433.1
ns/op 344 B/op 11 allocs/op422.8
ns/op 344 B/op 11 allocs/op1.02
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) - ns/op
433.1
ns/op422.8
ns/op1.02
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) - B/op
344
B/op344
B/op1
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op
11
allocs/op11
allocs/op1
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6])
799.1
ns/op 896 B/op 19 allocs/op791.2
ns/op 896 B/op 19 allocs/op1.01
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op
799.1
ns/op791.2
ns/op1.01
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op
896
B/op896
B/op1
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op
19
allocs/op19
allocs/op1
BenchmarkFlatten/depth0_[]int([1_2_3])
120.9
ns/op 72 B/op 4 allocs/op114.2
ns/op 72 B/op 4 allocs/op1.06
BenchmarkFlatten/depth0_[]int([1_2_3]) - ns/op
120.9
ns/op114.2
ns/op1.06
BenchmarkFlatten/depth0_[]int([1_2_3]) - B/op
72
B/op72
B/op1
BenchmarkFlatten/depth0_[]int([1_2_3]) - allocs/op
4
allocs/op4
allocs/op1
BenchmarkFlatten/depth0_[3]int([1_2_3])
63.39
ns/op 48 B/op 1 allocs/op63.74
ns/op 48 B/op 1 allocs/op0.99
BenchmarkFlatten/depth0_[3]int([1_2_3]) - ns/op
63.39
ns/op63.74
ns/op0.99
BenchmarkFlatten/depth0_[3]int([1_2_3]) - B/op
48
B/op48
B/op1
BenchmarkFlatten/depth0_[3]int([1_2_3]) - allocs/op
1
allocs/op1
allocs/op1
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3])
4.328
ns/op 0 B/op 0 allocs/op4.33
ns/op 0 B/op 0 allocs/op1.00
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) - ns/op
4.328
ns/op4.33
ns/op1.00
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) - B/op
0
B/op0
B/op1
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3])
4.336
ns/op 0 B/op 0 allocs/op4.442
ns/op 0 B/op 0 allocs/op0.98
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) - ns/op
4.336
ns/op4.442
ns/op0.98
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) - B/op
0
B/op0
B/op1
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6])
4.337
ns/op 0 B/op 0 allocs/op4.301
ns/op 0 B/op 0 allocs/op1.01
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op
4.337
ns/op4.301
ns/op1.01
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op
0
B/op0
B/op1
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkFlatten/depth1_[]int([1_2_3])
170.1
ns/op 168 B/op 5 allocs/op166.1
ns/op 168 B/op 5 allocs/op1.02
BenchmarkFlatten/depth1_[]int([1_2_3]) - ns/op
170.1
ns/op166.1
ns/op1.02
BenchmarkFlatten/depth1_[]int([1_2_3]) - B/op
168
B/op168
B/op1
BenchmarkFlatten/depth1_[]int([1_2_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth1_[3]int([1_2_3])
116.7
ns/op 144 B/op 2 allocs/op116.9
ns/op 144 B/op 2 allocs/op1.00
BenchmarkFlatten/depth1_[3]int([1_2_3]) - ns/op
116.7
ns/op116.9
ns/op1.00
BenchmarkFlatten/depth1_[3]int([1_2_3]) - B/op
144
B/op144
B/op1
BenchmarkFlatten/depth1_[3]int([1_2_3]) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3])
159.5
ns/op 144 B/op 4 allocs/op157.9
ns/op 144 B/op 4 allocs/op1.01
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) - ns/op
159.5
ns/op157.9
ns/op1.01
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) - B/op
144
B/op144
B/op1
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) - allocs/op
4
allocs/op4
allocs/op1
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3])
216.2
ns/op 168 B/op 5 allocs/op210.8
ns/op 168 B/op 5 allocs/op1.03
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) - ns/op
216.2
ns/op210.8
ns/op1.03
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) - B/op
168
B/op168
B/op1
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6])
144.4
ns/op 128 B/op 3 allocs/op140.6
ns/op 128 B/op 3 allocs/op1.03
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op
144.4
ns/op140.6
ns/op1.03
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op
128
B/op128
B/op1
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkFlatten/depth2_[]int([1_2_3])
169.7
ns/op 168 B/op 5 allocs/op166.3
ns/op 168 B/op 5 allocs/op1.02
BenchmarkFlatten/depth2_[]int([1_2_3]) - ns/op
169.7
ns/op166.3
ns/op1.02
BenchmarkFlatten/depth2_[]int([1_2_3]) - B/op
168
B/op168
B/op1
BenchmarkFlatten/depth2_[]int([1_2_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth2_[3]int([1_2_3])
115.8
ns/op 144 B/op 2 allocs/op116.9
ns/op 144 B/op 2 allocs/op0.99
BenchmarkFlatten/depth2_[3]int([1_2_3]) - ns/op
115.8
ns/op116.9
ns/op0.99
BenchmarkFlatten/depth2_[3]int([1_2_3]) - B/op
144
B/op144
B/op1
BenchmarkFlatten/depth2_[3]int([1_2_3]) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3])
203.2
ns/op 208 B/op 5 allocs/op203.9
ns/op 208 B/op 5 allocs/op1.00
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) - ns/op
203.2
ns/op203.9
ns/op1.00
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) - B/op
208
B/op208
B/op1
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3])
371.7
ns/op 280 B/op 10 allocs/op368.6
ns/op 280 B/op 10 allocs/op1.01
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) - ns/op
371.7
ns/op368.6
ns/op1.01
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) - B/op
280
B/op280
B/op1
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op
10
allocs/op10
allocs/op1
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6])
318.1
ns/op 272 B/op 8 allocs/op324.6
ns/op 272 B/op 8 allocs/op0.98
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op
318.1
ns/op324.6
ns/op0.98
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op
272
B/op272
B/op1
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op
8
allocs/op8
allocs/op1
BenchmarkInterfaceSlice/[]int([1_2_3])
119.5
ns/op 72 B/op 4 allocs/op112.6
ns/op 72 B/op 4 allocs/op1.06
BenchmarkInterfaceSlice/[]int([1_2_3]) - ns/op
119.5
ns/op112.6
ns/op1.06
BenchmarkInterfaceSlice/[]int([1_2_3]) - B/op
72
B/op72
B/op1
BenchmarkInterfaceSlice/[]int([1_2_3]) - allocs/op
4
allocs/op4
allocs/op1
BenchmarkInterfaceSlice/[3]int([1_2_3])
63.04
ns/op 48 B/op 1 allocs/op60.15
ns/op 48 B/op 1 allocs/op1.05
BenchmarkInterfaceSlice/[3]int([1_2_3]) - ns/op
63.04
ns/op60.15
ns/op1.05
BenchmarkInterfaceSlice/[3]int([1_2_3]) - B/op
48
B/op48
B/op1
BenchmarkInterfaceSlice/[3]int([1_2_3]) - allocs/op
1
allocs/op1
allocs/op1
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz])
566.8
ns/op 384 B/op 13 allocs/op536.3
ns/op 384 B/op 13 allocs/op1.06
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - ns/op
566.8
ns/op536.3
ns/op1.06
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - B/op
384
B/op384
B/op1
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - allocs/op
13
allocs/op13
allocs/op1
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz])
161.3
ns/op 192 B/op 1 allocs/op152.9
ns/op 192 B/op 1 allocs/op1.05
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - ns/op
161.3
ns/op152.9
ns/op1.05
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - B/op
192
B/op192
B/op1
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - allocs/op
1
allocs/op1
allocs/op1
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3])
2.168
ns/op 0 B/op 0 allocs/op2.202
ns/op 0 B/op 0 allocs/op0.98
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) - ns/op
2.168
ns/op2.202
ns/op0.98
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) - B/op
0
B/op0
B/op1
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3])
66.84
ns/op 48 B/op 1 allocs/op63.17
ns/op 48 B/op 1 allocs/op1.06
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) - ns/op
66.84
ns/op63.17
ns/op1.06
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) - B/op
48
B/op48
B/op1
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) - allocs/op
1
allocs/op1
allocs/op1
BenchmarkResolveURL/base=http://example.com/foo.json_rel=bar.json
667.3
ns/op 456 B/op 5 allocs/opBenchmarkResolveURL/base=http://example.com/foo.json_rel=bar.json - ns/op
667.3
ns/opBenchmarkResolveURL/base=http://example.com/foo.json_rel=bar.json - B/op
456
B/opBenchmarkResolveURL/base=http://example.com/foo.json_rel=bar.json - allocs/op
5
allocs/opBenchmarkResolveURL/base=git+file:///tmp/repo//foo.txt_rel=
79
ns/op 144 B/op 1 allocs/opBenchmarkResolveURL/base=git+file:///tmp/repo//foo.txt_rel= - ns/op
79
ns/opBenchmarkResolveURL/base=git+file:///tmp/repo//foo.txt_rel= - B/op
144
B/opBenchmarkResolveURL/base=git+file:///tmp/repo//foo.txt_rel= - allocs/op
1
allocs/opBenchmarkResolveURL/base=tmp/foo.json_rel=
78.5
ns/op 144 B/op 1 allocs/opBenchmarkResolveURL/base=tmp/foo.json_rel= - ns/op
78.5
ns/opBenchmarkResolveURL/base=tmp/foo.json_rel= - B/op
144
B/opBenchmarkResolveURL/base=tmp/foo.json_rel= - allocs/op
1
allocs/opBenchmarkResolveURL/base=/tmp/_rel=foo.json
611.4
ns/op 456 B/op 5 allocs/opBenchmarkResolveURL/base=/tmp/_rel=foo.json - ns/op
611.4
ns/opBenchmarkResolveURL/base=/tmp/_rel=foo.json - B/op
456
B/opBenchmarkResolveURL/base=/tmp/_rel=foo.json - allocs/op
5
allocs/opBenchmarkResolveURL/base=../../tmp/foo.json_rel=
78.5
ns/op 144 B/op 1 allocs/opBenchmarkResolveURL/base=../../tmp/foo.json_rel= - ns/op
78.5
ns/opBenchmarkResolveURL/base=../../tmp/foo.json_rel= - B/op
144
B/opBenchmarkResolveURL/base=../../tmp/foo.json_rel= - allocs/op
1
allocs/opBenchmarkResolveURL/base=../../tmp/_rel=sub/foo.json
1270
ns/op 840 B/op 14 allocs/opBenchmarkResolveURL/base=../../tmp/_rel=sub/foo.json - ns/op
1270
ns/opBenchmarkResolveURL/base=../../tmp/_rel=sub/foo.json - B/op
840
B/opBenchmarkResolveURL/base=../../tmp/_rel=sub/foo.json - allocs/op
14
allocs/opBenchmarkResolveURL/base=aws+sm:_rel=foo
81.33
ns/op 144 B/op 1 allocs/opBenchmarkResolveURL/base=aws+sm:_rel=foo - ns/op
81.33
ns/opBenchmarkResolveURL/base=aws+sm:_rel=foo - B/op
144
B/opBenchmarkResolveURL/base=aws+sm:_rel=foo - allocs/op
1
allocs/opBenchmarkResolveURL/base=aws+sm:_rel=/foo
432
ns/op 440 B/op 4 allocs/opBenchmarkResolveURL/base=aws+sm:_rel=/foo - ns/op
432
ns/opBenchmarkResolveURL/base=aws+sm:_rel=/foo - B/op
440
B/opBenchmarkResolveURL/base=aws+sm:_rel=/foo - allocs/op
4
allocs/opBenchmarkResolveURL/base=aws+sm:foo_rel=bar
146.5
ns/op 160 B/op 3 allocs/opBenchmarkResolveURL/base=aws+sm:foo_rel=bar - ns/op
146.5
ns/opBenchmarkResolveURL/base=aws+sm:foo_rel=bar - B/op
160
B/opBenchmarkResolveURL/base=aws+sm:foo_rel=bar - allocs/op
3
allocs/opBenchmarkResolveURL/base=aws+sm:///foo_rel=bar
477.8
ns/op 440 B/op 4 allocs/opBenchmarkResolveURL/base=aws+sm:///foo_rel=bar - ns/op
477.8
ns/opBenchmarkResolveURL/base=aws+sm:///foo_rel=bar - B/op
440
B/opBenchmarkResolveURL/base=aws+sm:///foo_rel=bar - allocs/op
4
allocs/opBenchmarkToBytes
1013
ns/op 40 B/op 3 allocs/op1125
ns/op 40 B/op 3 allocs/op0.90
BenchmarkToBytes - ns/op
1013
ns/op1125
ns/op0.90
BenchmarkToBytes - B/op
40
B/op40
B/op1
BenchmarkToBytes - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/int(0)
3.105
ns/op 0 B/op 0 allocs/op3.178
ns/op 0 B/op 0 allocs/op0.98
BenchmarkIsFloat/int(0) - ns/op
3.105
ns/op3.178
ns/op0.98
BenchmarkIsFloat/int(0) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int(0) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int(1)
3.098
ns/op 0 B/op 0 allocs/op3.102
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/int(1) - ns/op
3.098
ns/op3.102
ns/op1.00
BenchmarkIsFloat/int(1) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int(1) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int(-1)
3.098
ns/op 0 B/op 0 allocs/op3.135
ns/op 0 B/op 0 allocs/op0.99
BenchmarkIsFloat/int(-1) - ns/op
3.098
ns/op3.135
ns/op0.99
BenchmarkIsFloat/int(-1) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int(-1) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint(42)
3.096
ns/op 0 B/op 0 allocs/op3.097
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/uint(42) - ns/op
3.096
ns/op3.097
ns/op1.00
BenchmarkIsFloat/uint(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint8(255)
3.098
ns/op 0 B/op 0 allocs/op3.097
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/uint8(255) - ns/op
3.098
ns/op3.097
ns/op1.00
BenchmarkIsFloat/uint8(255) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint8(255) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint16(42)
3.103
ns/op 0 B/op 0 allocs/op3.102
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/uint16(42) - ns/op
3.103
ns/op3.102
ns/op1.00
BenchmarkIsFloat/uint16(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint16(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint32(42)
3.104
ns/op 0 B/op 0 allocs/op3.096
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/uint32(42) - ns/op
3.104
ns/op3.096
ns/op1.00
BenchmarkIsFloat/uint32(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint32(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint64(42)
3.099
ns/op 0 B/op 0 allocs/op3.101
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/uint64(42) - ns/op
3.099
ns/op3.101
ns/op1.00
BenchmarkIsFloat/uint64(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint64(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int(42)
3.126
ns/op 0 B/op 0 allocs/op3.101
ns/op 0 B/op 0 allocs/op1.01
BenchmarkIsFloat/int(42) - ns/op
3.126
ns/op3.101
ns/op1.01
BenchmarkIsFloat/int(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int8(127)
3.096
ns/op 0 B/op 0 allocs/op3.096
ns/op 0 B/op 0 allocs/op1
BenchmarkIsFloat/int8(127) - ns/op
3.096
ns/op3.096
ns/op1
BenchmarkIsFloat/int8(127) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int8(127) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int16(42)
3.098
ns/op 0 B/op 0 allocs/op3.102
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/int16(42) - ns/op
3.098
ns/op3.102
ns/op1.00
BenchmarkIsFloat/int16(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int16(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int32(42)
3.101
ns/op 0 B/op 0 allocs/op3.094
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/int32(42) - ns/op
3.101
ns/op3.094
ns/op1.00
BenchmarkIsFloat/int32(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int32(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int64(42)
3.097
ns/op 0 B/op 0 allocs/op3.1
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/int64(42) - ns/op
3.097
ns/op3.1
ns/op1.00
BenchmarkIsFloat/int64(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int64(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/float32(18.3)
2.478
ns/op 0 B/op 0 allocs/op2.786
ns/op 0 B/op 0 allocs/op0.89
BenchmarkIsFloat/float32(18.3) - ns/op
2.478
ns/op2.786
ns/op0.89
BenchmarkIsFloat/float32(18.3) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/float32(18.3) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/float64(18.3)
2.788
ns/op 0 B/op 0 allocs/op2.792
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/float64(18.3) - ns/op
2.788
ns/op2.792
ns/op1.00
BenchmarkIsFloat/float64(18.3) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/float64(18.3) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/float64(1.5)
2.79
ns/op 0 B/op 0 allocs/op2.786
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/float64(1.5) - ns/op
2.79
ns/op2.786
ns/op1.00
BenchmarkIsFloat/float64(1.5) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/float64(1.5) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/float64(-18.6)
2.788
ns/op 0 B/op 0 allocs/op2.789
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/float64(-18.6) - ns/op
2.788
ns/op2.789
ns/op1.00
BenchmarkIsFloat/float64(-18.6) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/float64(-18.6) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(42)
34.46
ns/op 0 B/op 0 allocs/op34.1
ns/op 0 B/op 0 allocs/op1.01
BenchmarkIsFloat/string(42) - ns/op
34.46
ns/op34.1
ns/op1.01
BenchmarkIsFloat/string(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/string(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(052)
38.4
ns/op 0 B/op 0 allocs/op38.08
ns/op 0 B/op 0 allocs/op1.01
BenchmarkIsFloat/string(052) - ns/op
38.4
ns/op38.08
ns/op1.01
BenchmarkIsFloat/string(052) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/string(052) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(0xff)
73.72
ns/op 52 B/op 2 allocs/op72.28
ns/op 52 B/op 2 allocs/op1.02
BenchmarkIsFloat/string(0xff) - ns/op
73.72
ns/op72.28
ns/op1.02
BenchmarkIsFloat/string(0xff) - B/op
52
B/op52
B/op1
BenchmarkIsFloat/string(0xff) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkIsFloat/string(-42)
36.63
ns/op 0 B/op 0 allocs/op35.95
ns/op 0 B/op 0 allocs/op1.02
BenchmarkIsFloat/string(-42) - ns/op
36.63
ns/op35.95
ns/op1.02
BenchmarkIsFloat/string(-42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/string(-42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(-0)
32.27
ns/op 0 B/op 0 allocs/op32.63
ns/op 0 B/op 0 allocs/op0.99
BenchmarkIsFloat/string(-0) - ns/op
32.27
ns/op32.63
ns/op0.99
BenchmarkIsFloat/string(-0) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/string(-0) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(3.14)
108.2
ns/op 56 B/op 3 allocs/op105.3
ns/op 56 B/op 3 allocs/op1.03
BenchmarkIsFloat/string(3.14) - ns/op
108.2
ns/op105.3
ns/op1.03
BenchmarkIsFloat/string(3.14) - B/op
56
B/op56
B/op1
BenchmarkIsFloat/string(3.14) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(-3.14)
121.9
ns/op 64 B/op 3 allocs/op112.2
ns/op 64 B/op 3 allocs/op1.09
BenchmarkIsFloat/string(-3.14) - ns/op
121.9
ns/op112.2
ns/op1.09
BenchmarkIsFloat/string(-3.14) - B/op
64
B/op64
B/op1
BenchmarkIsFloat/string(-3.14) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(0.00)
105.3
ns/op 56 B/op 3 allocs/op105.8
ns/op 56 B/op 3 allocs/op1.00
BenchmarkIsFloat/string(0.00) - ns/op
105.3
ns/op105.8
ns/op1.00
BenchmarkIsFloat/string(0.00) - B/op
56
B/op56
B/op1
BenchmarkIsFloat/string(0.00) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(NaN)
97.23
ns/op 54 B/op 3 allocs/op93.86
ns/op 54 B/op 3 allocs/op1.04
BenchmarkIsFloat/string(NaN) - ns/op
97.23
ns/op93.86
ns/op1.04
BenchmarkIsFloat/string(NaN) - B/op
54
B/op54
B/op1
BenchmarkIsFloat/string(NaN) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(-Inf)
101.1
ns/op 56 B/op 3 allocs/op92.49
ns/op 56 B/op 3 allocs/op1.09
BenchmarkIsFloat/string(-Inf) - ns/op
101.1
ns/op92.49
ns/op1.09
BenchmarkIsFloat/string(-Inf) - B/op
56
B/op56
B/op1
BenchmarkIsFloat/string(-Inf) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(+Inf)
104.1
ns/op 56 B/op 3 allocs/op93.17
ns/op 56 B/op 3 allocs/op1.12
BenchmarkIsFloat/string(+Inf) - ns/op
104.1
ns/op93.17
ns/op1.12
BenchmarkIsFloat/string(+Inf) - B/op
56
B/op56
B/op1
BenchmarkIsFloat/string(+Inf) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string()
50.9
ns/op 48 B/op 1 allocs/op49.84
ns/op 48 B/op 1 allocs/op1.02
BenchmarkIsFloat/string() - ns/op
50.9
ns/op49.84
ns/op1.02
BenchmarkIsFloat/string() - B/op
48
B/op48
B/op1
BenchmarkIsFloat/string() - allocs/op
1
allocs/op1
allocs/op1
BenchmarkIsFloat/string(foo)
75.6
ns/op 51 B/op 2 allocs/op69.53
ns/op 51 B/op 2 allocs/op1.09
BenchmarkIsFloat/string(foo) - ns/op
75.6
ns/op69.53
ns/op1.09
BenchmarkIsFloat/string(foo) - B/op
51
B/op51
B/op1
BenchmarkIsFloat/string(foo) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkIsFloat/bool(true)
3.101
ns/op 0 B/op 0 allocs/op3.097
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/bool(true) - ns/op
3.101
ns/op3.097
ns/op1.00
BenchmarkIsFloat/bool(true) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/bool(true) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkLookupIPs
48508
ns/op 1872 B/op 46 allocs/op50737
ns/op 1840 B/op 44 allocs/op0.96
BenchmarkLookupIPs - ns/op
48508
ns/op50737
ns/op0.96
BenchmarkLookupIPs - B/op
1872
B/op1840
B/op1.02
BenchmarkLookupIPs - allocs/op
46
allocs/op44
allocs/op1.05
BenchmarkIndent
1857
ns/op 2040 B/op 18 allocs/op1946
ns/op 2064 B/op 20 allocs/op0.95
BenchmarkIndent - ns/op
1857
ns/op1946
ns/op0.95
BenchmarkIndent - B/op
2040
B/op2064
B/op0.99
BenchmarkIndent - allocs/op
18
allocs/op20
allocs/op0.90
This comment was automatically generated by workflow using github-action-benchmark.