Skip to content

Commit

Permalink
fix tresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
freef4ll committed Oct 16, 2023
1 parent 998da01 commit 43cfe7b
Show file tree
Hide file tree
Showing 19 changed files with 78 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Benchmarks/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import PackageDescription
let package = Package(
name: "benchmarks",
platforms: [
.macOS("14"),
.macOS(.v13),
],
dependencies: [
.package(path: "../"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 2
}
3 changes: 3 additions & 0 deletions Benchmarks/Thresholds/5.7/PrometheusBenchmarks.Gauge.p90.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 2
}
3 changes: 3 additions & 0 deletions Benchmarks/Thresholds/5.8/PrometheusBenchmarks.Gauge.p90.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mallocCountTotal" : 0
}
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ ENV LANGUAGE en_US.UTF-8
RUN apt-get update && apt-get install -y wget
RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools libz-dev curl jq # used by integration tests

# install jemalloc for running allocation benchmarks
RUN apt-get update & apt-get install -y libjemalloc-dev

# ruby and jazzy for docs generation
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev build-essential
# jazzy no longer works on xenial as ruby is too old.
Expand Down
27 changes: 27 additions & 0 deletions docker/docker-compose.2204.510.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: "3"

services:

runtime-setup:
image: prometheus:22.04-5.10
build:
args:
base_image: "swiftlang/swift:nightly-5.10-jammy"

documentation-check:
image: prometheus:22.04-5.10

test:
image: prometheus:22.04-5.10
environment:
- SWIFT_VERSION=main
- IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error
#- SANITIZER_ARG=--sanitize=thread

update-benchmark-baseline:
image: prometheus:22.04-5.10
environment:
- SWIFT_VERSION=5.10

shell:
image: prometheus:22.04-5.10
4 changes: 2 additions & 2 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ services:
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code:z
working_dir: /code
- ..:/swift-prometheus:z
working_dir: /swift-prometheus
cap_drop:
- CAP_NET_RAW
- CAP_NET_BIND_SERVICE
Expand Down

0 comments on commit 43cfe7b

Please sign in to comment.