Skip to content

Commit 183fc28

Browse files
committed
[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).
1 parent 70a1f9f commit 183fc28

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

benchmark/single-source/BufferFind.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ public var benchmarks: [BenchmarkInfo] = [
2828
setUpFunction: buffer1000Setup,
2929
tearDownFunction: bufferTeardown
3030
),
31-
// size 15, alignment 0
31+
// size 39, alignment 0
3232
BenchmarkInfo(
33-
name: "RawBuffer.15.findFirst",
33+
name: "RawBuffer.39.findFirst",
3434
runFunction: run_BufferFindFirst,
3535
tags: [.validation, .api],
36-
setUpFunction: buffer15Setup,
36+
setUpFunction: buffer39Setup,
3737
tearDownFunction: bufferTeardown
3838
),
3939
BenchmarkInfo(
40-
name: "RawBuffer.15.findLast",
40+
name: "RawBuffer.39.findLast",
4141
runFunction: run_BufferFindLast,
4242
tags: [.validation, .api],
43-
setUpFunction: buffer15Setup,
43+
setUpFunction: buffer39Setup,
4444
tearDownFunction: bufferTeardown
4545
),
4646
// size 7, alignment 0
@@ -66,8 +66,8 @@ func buffer1000Setup() {
6666
bufferSetup(size: 1000, alignment: 0)
6767
}
6868

69-
func buffer15Setup() {
70-
bufferSetup(size: 15, alignment: 0)
69+
func buffer39Setup() {
70+
bufferSetup(size: 39, alignment: 0)
7171
}
7272

7373
func buffer7Setup() {

0 commit comments

Comments
 (0)