Skip to content

Commit 19f4ce1

Browse files
author
Samuel Groß
committed
Removed speedTestMode since it's not really meaningful
1 parent 5644d74 commit 19f4ce1

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

Sources/Fuzzilli/Configuration.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ public struct Configuration {
1616
/// Timeout in milliseconds after which child processes will be killed.
1717
public let timeout: UInt32
1818

19-
/// Enable "speed test" mode.
20-
/// In that mode, the fuzzer runs as normal, but all programs
21-
/// scheduled for execution are replaced by a predefined program.
22-
/// This provides consistent execution speed of the generated samples
23-
/// and is useful for evaluating the performance of the fuzzer itself.
24-
public let speedTestMode: Bool
25-
2619
/// Log level to use.
2720
public let logLevel: LogLevel
2821

@@ -77,7 +70,6 @@ public struct Configuration {
7770

7871
public init(timeout: UInt32 = 250,
7972
skipStartupTests: Bool = false,
80-
speedTestMode: Bool = false,
8173
logLevel: LogLevel = .info,
8274
crashTests: [String] = [],
8375
isMaster: Bool = false,
@@ -90,7 +82,6 @@ public struct Configuration {
9082
enableDiagnostics: Bool = false,
9183
inspection: InspectionOptions = []) {
9284
self.timeout = timeout
93-
self.speedTestMode = speedTestMode
9485
self.logLevel = logLevel
9586
self.crashTests = crashTests
9687
self.isMaster = isMaster

Sources/Fuzzilli/Fuzzer.swift

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,7 @@ public class Fuzzer {
381381
dispatchPrecondition(condition: .onQueue(queue))
382382
assert(runner.isInitialized)
383383

384-
let script: String
385-
if config.speedTestMode {
386-
script = lifter.lift(makeComplexProgram(), withOptions: .minify)
387-
} else {
388-
script = lifter.lift(program, withOptions: .minify)
389-
}
384+
let script = lifter.lift(program, withOptions: .minify)
390385

391386
dispatchEvent(events.PreExecute, data: program)
392387
let execution = runner.run(script, withTimeout: timeout ?? config.timeout)
@@ -587,11 +582,6 @@ public class Fuzzer {
587582
public func runStartupTests() {
588583
assert(isInitialized)
589584

590-
guard !config.speedTestMode else {
591-
logger.info("Skipping startup tests due to speed test mode")
592-
return
593-
}
594-
595585
#if os(Linux)
596586
do {
597587
let corePattern = try String(contentsOfFile: "/proc/sys/kernel/core_pattern", encoding: String.Encoding.ascii)

0 commit comments

Comments
 (0)