Skip to content

Commit

Permalink
[benchmark] Tweak naming and workload for two new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xwu committed Sep 17, 2020
1 parent 26f3c81 commit cb96bfb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benchmark/single-source/FloatingPointConversion.swift
Expand Up @@ -24,8 +24,8 @@ public let FloatingPointConversion = [
tags: [.validation, .api],
setUpFunction: { blackHole(mockFloat64s) }),
BenchmarkInfo(
name: "ConvertFloatingPoint.MockFloat64Exactly.bis",
runFunction: run_ConvertFloatingPoint_MockFloat64Exactly_bis,
name: "ConvertFloatingPoint.MockFloat64Exactly2",
runFunction: run_ConvertFloatingPoint_MockFloat64Exactly2,
tags: [.validation, .api],
setUpFunction: { blackHole(mockFloat64s) }),
BenchmarkInfo(
Expand Down Expand Up @@ -183,7 +183,7 @@ func convert<

@inline(never)
public func run_ConvertFloatingPoint_MockFloat64Exactly(_ N: Int) {
for _ in 0..<(N * 100) {
for _ in 0..<(N * 25) {
for element in mockFloat64s {
let f = convert(exactly: identity(element), to: Double.self)
blackHole(f)
Expand All @@ -192,8 +192,8 @@ public func run_ConvertFloatingPoint_MockFloat64Exactly(_ N: Int) {
}

@inline(never)
public func run_ConvertFloatingPoint_MockFloat64Exactly_bis(_ N: Int) {
for _ in 0..<(N * 100) {
public func run_ConvertFloatingPoint_MockFloat64Exactly2(_ N: Int) {
for _ in 0..<(N * 25) {
for element in mockFloat64s {
let f = convert(exactly: identity(element), to: MockFloat32.self)
blackHole(f)
Expand Down

0 comments on commit cb96bfb

Please sign in to comment.