mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add test for 128 bytes buffer
This commit is contained in:
@@ -28,6 +28,21 @@ public var benchmarks: [BenchmarkInfo] = [
|
|||||||
setUpFunction: buffer1000Setup,
|
setUpFunction: buffer1000Setup,
|
||||||
tearDownFunction: bufferTeardown
|
tearDownFunction: bufferTeardown
|
||||||
),
|
),
|
||||||
|
// size 128, alignment 0
|
||||||
|
BenchmarkInfo(
|
||||||
|
name: "RawBuffer.128.findFirst",
|
||||||
|
runFunction: run_BufferFindFirst,
|
||||||
|
tags: [.validation, .api, .skip],
|
||||||
|
setUpFunction: buffer128Setup,
|
||||||
|
tearDownFunction: bufferTeardown
|
||||||
|
),
|
||||||
|
BenchmarkInfo(
|
||||||
|
name: "RawBuffer.128.findLast",
|
||||||
|
runFunction: run_BufferFindLast,
|
||||||
|
tags: [.validation, .api],
|
||||||
|
setUpFunction: buffer128Setup,
|
||||||
|
tearDownFunction: bufferTeardown
|
||||||
|
),
|
||||||
// size 39, alignment 0
|
// size 39, alignment 0
|
||||||
BenchmarkInfo(
|
BenchmarkInfo(
|
||||||
name: "RawBuffer.39.findFirst",
|
name: "RawBuffer.39.findFirst",
|
||||||
@@ -66,6 +81,10 @@ func buffer1000Setup() {
|
|||||||
bufferSetup(size: 1000, alignment: 0)
|
bufferSetup(size: 1000, alignment: 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func buffer128Setup() {
|
||||||
|
bufferSetup(size: 128, alignment: 0)
|
||||||
|
}
|
||||||
|
|
||||||
func buffer39Setup() {
|
func buffer39Setup() {
|
||||||
bufferSetup(size: 39, alignment: 0)
|
bufferSetup(size: 39, alignment: 0)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user