Commit Graph

8 Commits

Author SHA1 Message Date
Erik Eckstein
f6c24a05cc benchmarks: extract setup code into the setUpFunction in some benchmarks where setup time is significant 2018-07-24 20:20:23 -07:00
Ben Cohen
345879429b [stdlib] Take several underscored stdlib functions private (#18134)
* Make _sanityCheck internal

* Make _debugPrecondition internal

* Make Optional._unsafelyUnwrappedUnchecked internal.

* Make _precondition internal

* Switch Foundation _sanityChecks to assertions

* Update file check tests

* Remove one more _debugPrecondition

* Update Optimization-with-check tests
2018-07-24 18:26:19 -07:00
Lance Parker
cdf9ab6657 hashing benchmarks for String 2018-07-02 17:44:50 -07:00
Karoy Lorentey
41a8b9c084 [gardening][benchmark] Don't let Emacs modify gyb-generated benchmark sources 2018-06-25 17:16:39 +01:00
Michael Gottesman
013ae04f8b [benchmarks] Move StringComparison Workload initialization out of the timing loop.
I want to create some larger/more expensive workloads for this. So move all
StringComparison initialization out of the loop just to be standard.

rdar://40371840
2018-05-19 15:53:08 -07:00
Lance Parker
b446659934 Use blackHole on the comparison result 2017-12-12 10:43:25 -08:00
Lance Parker
4ed54512d0 added benchmark for strings with long shared prefixes 2017-12-11 17:35:36 -08:00
Lance Parker
4cad7535b7 Added comparison benchmarks
# Conflicts:
#	benchmark/single-source/StringComparison.swift
2017-12-01 16:54:08 -08:00