Skip to content

Commit

Permalink
Mark benchmark classes as Values
Browse files Browse the repository at this point in the history
This is to ensure the actor classes are values.

Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Jan 30, 2017
1 parent 5654323 commit c39b644
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core-lib/Benchmarks/Savina.som
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ class Savina usingPlatform: platform andHarness: harness = Value (
)
)

public class Philosophers new: numPhil rounds: numRounds = Benchmark (
public class Philosophers new: numPhil rounds: numRounds = Benchmark <: Value (
| private numPhil = numPhil.
private numRounds = numRounds.
|)(
Expand Down Expand Up @@ -1118,7 +1118,7 @@ class Savina usingPlatform: platform andHarness: harness = Value (
)
)

public class SleepingBarber numHaircuts: numHaircuts waitingRoomSize: waitingRoomSize avProductionRate: avProductionRate avHaircutRate: avHaircutRate = Benchmark (
public class SleepingBarber numHaircuts: numHaircuts waitingRoomSize: waitingRoomSize avProductionRate: avProductionRate avHaircutRate: avHaircutRate = Benchmark <: Value (
| private numHaircuts = numHaircuts.
private waitingRoomSize = waitingRoomSize.
private avProductionRate = avProductionRate.
Expand Down Expand Up @@ -1273,8 +1273,8 @@ class Savina usingPlatform: platform andHarness: harness = Value (
run problemSize: '5000:1000:1000:1000'
)
)
public class CigaretteSmokers rounds: rounds smokers: smokers = Benchmark (

public class CigaretteSmokers rounds: rounds smokers: smokers = Benchmark <: Value (
| private rounds = rounds.
private smokers = smokers.
|)(
Expand Down Expand Up @@ -1369,7 +1369,7 @@ class Savina usingPlatform: platform andHarness: harness = Value (
)
)

public class LogisticsMapSeries numTerms: terms numSeries: series startRate: rate = Benchmark (
public class LogisticsMapSeries numTerms: terms numSeries: series startRate: rate = Benchmark <: Value (
| private numTerms = terms.
private numSeries = series.
private startRate = rate.
Expand Down Expand Up @@ -1492,7 +1492,7 @@ class Savina usingPlatform: platform andHarness: harness = Value (
)
)
public class BankTransaction numAccounts: acc numTransactions: tran = Benchmark (
public class BankTransaction numAccounts: acc numTransactions: tran = Benchmark <: Value (
| private numAccounts = acc.
private numTransactions = tran.
|)(
Expand Down Expand Up @@ -1735,8 +1735,8 @@ class Savina usingPlatform: platform andHarness: harness = Value (
run problemSize: '100:256:74755'
)
)
public class FilterBank = Benchmark ()( todo = () )
public class FilterBank = Benchmark <: Value ()( todo = () )
public class Sieve new: limit local: numMaxLocalPrimes = Benchmark <: Value (
| private limit = limit.
Expand Down Expand Up @@ -2122,9 +2122,9 @@ class Savina usingPlatform: platform andHarness: harness = Value (
run problemSize: '100:10000000:1:5'
)
)
public class SuccessiveOverRelaxation = Benchmark ()( todo = ( USES_SHARED_ARRAYS ) )
public class SuccessiveOverRelaxation = Benchmark <: Value ()( todo = ( USES_SHARED_ARRAYS ) )
(* This benchmark uses originally shared grid nodes.
The interesting property is that the updates are conceptually safe even
Expand Down Expand Up @@ -2466,7 +2466,7 @@ class Savina usingPlatform: platform andHarness: harness = Value (
)
)
public class NQueens numWorkers: workers size: size threshold: threshold = Benchmark (
public class NQueens numWorkers: workers size: size threshold: threshold = Benchmark <: Value (
| private numWorkers = workers.
private size = size.
private threshold = threshold.
Expand Down

0 comments on commit c39b644

Please sign in to comment.