mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[benchmark] change a buffer length
- the intermediate length (15 bytes) didn’t show results significantly different from those produced by the short length benchmark (7 bytes).
This commit is contained in:
@@ -28,19 +28,19 @@ public var benchmarks: [BenchmarkInfo] = [
|
||||
setUpFunction: buffer1000Setup,
|
||||
tearDownFunction: bufferTeardown
|
||||
),
|
||||
// size 15, alignment 0
|
||||
// size 39, alignment 0
|
||||
BenchmarkInfo(
|
||||
name: "RawBuffer.15.findFirst",
|
||||
name: "RawBuffer.39.findFirst",
|
||||
runFunction: run_BufferFindFirst,
|
||||
tags: [.validation, .api],
|
||||
setUpFunction: buffer15Setup,
|
||||
setUpFunction: buffer39Setup,
|
||||
tearDownFunction: bufferTeardown
|
||||
),
|
||||
BenchmarkInfo(
|
||||
name: "RawBuffer.15.findLast",
|
||||
name: "RawBuffer.39.findLast",
|
||||
runFunction: run_BufferFindLast,
|
||||
tags: [.validation, .api],
|
||||
setUpFunction: buffer15Setup,
|
||||
setUpFunction: buffer39Setup,
|
||||
tearDownFunction: bufferTeardown
|
||||
),
|
||||
// size 7, alignment 0
|
||||
@@ -66,8 +66,8 @@ func buffer1000Setup() {
|
||||
bufferSetup(size: 1000, alignment: 0)
|
||||
}
|
||||
|
||||
func buffer15Setup() {
|
||||
bufferSetup(size: 15, alignment: 0)
|
||||
func buffer39Setup() {
|
||||
bufferSetup(size: 39, alignment: 0)
|
||||
}
|
||||
|
||||
func buffer7Setup() {
|
||||
|
||||
Reference in New Issue
Block a user