Skip to content

Commit e73f753

Browse files
authored
Merge branch 'master' into dependabot/github_actions/julia-actions/setup-julia-2
2 parents 5932118 + 8dfcff4 commit e73f753

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

.buildkite/pipeline.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
steps:
3+
- label: ":test_tube: Test the package"
4+
plugins:
5+
- JuliaCI/julia#v1:
6+
version: "1"
7+
commands: |
8+
julia --version
9+
agents:
10+
queue: "juliaecosystem"
11+
os: "linux"
12+
arch: "x86_64"

.github/workflows/CI.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
version:
19-
- '1.0'
2019
- '1.6'
2120
- '1'
2221
- 'nightly'
@@ -25,9 +24,6 @@ jobs:
2524
os:
2625
- ubuntu-latest
2726
include:
28-
- version: '1.5'
29-
arch: x64
30-
os: ubuntu-20.04
3127
- version: '1.7'
3228
arch: x64
3329
os: ubuntu-20.04

Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name = "BenchmarkTools"
22
uuid = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
3-
version = "1.5.0"
3+
version = "1.6.0"
44

55
[deps]
6+
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
67
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
78
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
89
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
@@ -12,6 +13,7 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1213

1314
[compat]
1415
Aqua = "0.8"
16+
Compat = ">= 4.11.0"
1517
JSON = "0.18, 0.19, 0.20, 0.21"
1618
JuliaFormatter = "1"
1719
Logging = "<0.0.1, 1"
@@ -20,7 +22,7 @@ Profile = "<0.0.1, 1"
2022
Statistics = "<0.0.1, 1"
2123
Test = "<0.0.1, 1"
2224
UUIDs = "<0.0.1, 1"
23-
julia = "1"
25+
julia = "1.6"
2426

2527
[extras]
2628
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"

src/BenchmarkTools.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ using Statistics
88
using UUIDs: uuid4
99
using Printf
1010
using Profile
11-
12-
const BENCHMARKTOOLS_VERSION = if VERSION >= v"1.9"
13-
pkgversion(BenchmarkTools)
14-
else
15-
v"1.4.0"
16-
end
11+
using Compat
1712

1813
##############
1914
# Parameters #

src/execution.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,12 @@ end
109109
function _run(b::Benchmark, p::Parameters; verbose=false, pad="", warmup=true, kwargs...)
110110
params = Parameters(p; kwargs...)
111111
@assert params.seconds > 0.0 "time limit must be greater than 0.0"
112-
params.gctrial && gcscrub()
113-
start_time = Base.time()
114-
trial = Trial(params)
115112
if warmup
116113
b.samplefunc(b.quote_vals, Parameters(params; evals=1)) #warmup sample
117114
end
118-
params.gcsample && gcscrub()
115+
trial = Trial(params)
116+
params.gctrial && gcscrub()
117+
start_time = Base.time()
119118
s = b.samplefunc(b.quote_vals, params)
120119
push!(trial, s[1:(end - 1)]...)
121120
return_val = s[end]

src/serialization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const VERSIONS = Dict(
2-
"Julia" => string(VERSION), "BenchmarkTools" => string(BENCHMARKTOOLS_VERSION)
2+
"Julia" => string(VERSION), "BenchmarkTools" => pkgversion(BenchmarkTools)
33
)
44

55
# TODO: Add any new types as they're added

0 commit comments

Comments
 (0)