Skip to content

Commit f1fff00

Browse files
committed
[benchmark] Radix2CooleyTukey(f) Legacy Factor
1 parent 267b169 commit f1fff00

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

benchmark/single-source/Radix2CooleyTukey.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ public var Radix2CooleyTukey = [
1111
runFunction: run_Radix2CooleyTukey,
1212
tags: [.validation, .algorithm],
1313
setUpFunction: setUpRadix2CooleyTukey,
14-
tearDownFunction: tearDownRadix2CooleyTukey),
14+
tearDownFunction: tearDownRadix2CooleyTukey,
15+
legacyFactor: 48),
1516
BenchmarkInfo(
1617
name: "Radix2CooleyTukeyf",
1718
runFunction: run_Radix2CooleyTukeyf,
1819
tags: [.validation, .algorithm],
1920
setUpFunction: setUpRadix2CooleyTukeyf,
20-
tearDownFunction: tearDownRadix2CooleyTukeyf),
21+
tearDownFunction: tearDownRadix2CooleyTukeyf,
22+
legacyFactor: 48),
2123
]
2224

2325
//===----------------------------------------------------------------------===//
@@ -31,7 +33,7 @@ var double_output_imag: UnsafeMutablePointer<Double>?
3133
var double_temp_real: UnsafeMutablePointer<Double>?
3234
var double_temp_imag: UnsafeMutablePointer<Double>?
3335

34-
let doubleN = 65_536
36+
let doubleN = 2_048
3537
let doubleSize = { MemoryLayout<Double>.size * doubleN }()
3638

3739
func setUpRadix2CooleyTukey() {
@@ -143,7 +145,7 @@ public func run_Radix2CooleyTukey(_ N: Int) {
143145
// Float Benchmark
144146
//===----------------------------------------------------------------------===//
145147

146-
let floatN = 65_536
148+
let floatN = 2_048
147149
let floatSize = { MemoryLayout<Float>.size * floatN }()
148150

149151
var float_input_real: UnsafeMutablePointer<Float>?

0 commit comments

Comments
 (0)