6 Commits
Author SHA1 Message Date
Cory Benfield 4688f24281 Our perf thresholds have changed (#178)
* Our perf thresholds have changed

* Apparently local runs don't match

* Stop using retain/release thresholds

* Remove retain/release counts
2024-06-07 16:27:37 +01:00
Rick Newton-Rogers efc568c52c Add CI pipeline for Swift 5.10 (#145)
Motivation:

Now that Swift 5.9 is GM we should update the CI pipelines

Modifications:

* Add a 5.10 nightly docker compose file
* Update the 5.9 compose file to stop using nightlies
* Update benchmark thresholds

Result:

Remove add CI support for 5.10
2023-10-04 17:42:02 +01:00
David Nadoba 7815247199 Adopt package-benchmark (#125)
* Add `package-benchmark`

* use local dependencies

* split into multiple targets

* fix benchmark plugin

* refactor file structure

* self review

* Fix review comment

* Apply review feedback

* use `scaledIterations`

* don’t require the parent folder to be named `swift-certificates`

* install jemalloc

* use new `metricP90AbsoluteThresholds` export format

* update metrics

* use automated threshold import

* merge main and update allocation counters

* adopt `swift-format` for benchmarks

* add license headers

* use latest threshold file format

* delete old integration tests

* use released version

* revork folder structure

and add BlackHole module

* crash in debug configuration

* swift-format

* update baselines

* Move to single target

* update swift-format script

* enable arc for `Verifier`

* update to `package-benchmark` `1.11.0`

* update to `package-benchmark` `1.11.1`

* update benchmark metrics

* update metrics captured

* include release count

* move `.benchmarkBaselines` to nested `.gitignore`

* swift-format

* Fix `.gitignore`

* Add documentation

* change wording

* remove version number

* remove benchmarks folder

* add uppercase Benchmarks folder

* fix formatting script

* update readme with new uppercase folder name

* update Benchmarks folder name in docker compose

* drop allocation limits
2023-09-21 14:17:49 +01:00
David Nadoba 290123d2e9 Do not allocate for RelativeDistinguishedNames with just a single attribute (#101)
* Setup allocation test framework

* Add allocation test that decodes all WebPKI Roots

* Replace _WebPKI with inline PEM strings

* Fix test

* implement `TinyArray`

* save progress with local ASN.1 dependency

465 allocs

* Implement lazySet in swift-certificates

* test on all WebPKI roots

* Revert "test on all WebPKI roots"

This reverts commit 4af11bb087.

* remove PerformanceTests

* Add tests for TinyArray

* revert changes

* delete unused test

* Implement TinyArray

* update cmake

* “Hide” enum and support storing arrays of exactly one element in `.arbitrary`

* Add allocation tests for TinyArray

* make arrays of different sizes

* Remove array optimisation

* run append in a loop

* Move _TinyArray into a separate module

and apply review feedback

* update cmake files

* remove unused Foundation import

* Allocations are lower by “1” on Linux

* import new module

* Add loop

* update allocation numbers for Linux

* replace with do/catch with try!

* Fix copyright

* update allocations

* Move lazySet to swift-asn1

* update allocation counters

* Fix `update-alloc-limits-to-last-completed-ci-build`

* Use concrete type
2023-07-05 11:47:57 +01:00
David Nadoba 4a668badd3 Setup allocation test framework (#96) 2023-06-19 12:13:43 +02:00
tomer doron 17a0c13351 Create CONTRIBUTING.md (#27)
* Create CONTRIBUTING.md
2023-03-01 21:41:15 -08:00