-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Swarm-Bachelor/calc-on-output
Calc on output
- Loading branch information
Showing
15 changed files
with
1,342 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
# vendor/ | ||
|
||
.idea/** | ||
.results/*.txt | ||
**/results/*.txt | ||
|
||
**/states.json | ||
**/routes.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,58 @@ | ||
package config | ||
|
||
func GetDefaultVariables() VariablesType { | ||
return defaultVariables | ||
} | ||
|
||
var defaultVariables = VariablesType{ | ||
Iterations: 10_000_000, // 10_000_000 | ||
Bits: 16, // 16 | ||
NetworkSize: 10000, // 10000 | ||
BinSize: 16, // 16 | ||
RangeAddress: 65536, // 2 ** Bits | ||
Originators: 1000, // 0.01 * NetworkSize | ||
RefreshRate: 8, // 8 | ||
Threshold: 16, // 16 | ||
RandomSeed: 123456789, // 123456789 | ||
MaxProximityOrder: 16, // 16 | ||
Price: 1, // 1 | ||
RequestsPerSecond: 12500, // 12500 | ||
ThresholdEnabled: true, // true | ||
ForgivenessEnabled: true, // true | ||
ForgivenessDuringRouting: true, // true | ||
PaymentEnabled: false, // false | ||
MaxPOCheckEnabled: false, // false | ||
OnlyOriginatorPays: false, // false | ||
PayOnlyForCurrentRequest: false, // false | ||
PayIfOrigPays: false, // false | ||
ForwardersPayForceOriginatorToPay: false, // false | ||
WaitingEnabled: false, // false | ||
RetryWithAnotherPeer: false, // false | ||
CacheIsEnabled: false, // false | ||
PreferredChunks: false, // false | ||
AdjustableThreshold: false, // false | ||
EdgeLock: true, // false | ||
SameOriginator: false, // false | ||
PrecomputeRespNodes: true, // false | ||
WriteRoutesToFile: false, // false | ||
WriteStatesToFile: false, // false | ||
IterationMeansUniqueChunk: false, // false | ||
DebugPrints: false, // false | ||
DebugInterval: 1000000, // 1000000 | ||
NumGoroutines: -1, // -1, gets overwritten by numCPU | ||
confOptions: confOptions{ | ||
Iterations: 10_000_000, // 10_000_000 | ||
Bits: 16, // 16 | ||
NetworkSize: 10000, // 10000 | ||
BinSize: 16, // 16 | ||
RangeAddress: 65536, // 2 ** Bits | ||
Originators: 1000, // 0.01 * NetworkSize | ||
RefreshRate: 8, // 8 | ||
Threshold: 16, // 16 | ||
RandomSeed: 123456789, // 123456789 | ||
MaxProximityOrder: 16, // 16 | ||
Price: 1, // 1 | ||
RequestsPerSecond: 12500, // 12500 | ||
EdgeLock: true, // false | ||
SameOriginator: false, // false | ||
PrecomputeRespNodes: true, // false | ||
WriteRoutesToFile: false, // false | ||
WriteStatesToFile: false, // false | ||
IterationMeansUniqueChunk: false, // false | ||
DebugPrints: false, // false | ||
DebugInterval: 1000000, // 1000000 | ||
NumGoroutines: -1, // -1 means gets overwritten by numCPU | ||
OutputEnabled: false, // false | ||
OutputOptions: outputOptions{ | ||
MeanRewardPerForward: false, // false | ||
AverageNumberOfHops: false, // false | ||
AverageFractionOfTotalRewardsK8: false, // false | ||
AverageFractionOfTotalRewardsK16: false, // false | ||
RewardFairnessForForwardingAction: false, // false | ||
RewardFairnessForStoringAction: false, // false | ||
RewardFairnessForAllActions: false, // false | ||
NegativeIncome: false, // false | ||
}, | ||
}, | ||
experimentOptions: experimentOptions{ | ||
ThresholdEnabled: true, // true | ||
ForgivenessEnabled: true, // true | ||
ForgivenessDuringRouting: true, // true | ||
PaymentEnabled: false, // false | ||
MaxPOCheckEnabled: false, // false | ||
OnlyOriginatorPays: false, // false | ||
PayOnlyForCurrentRequest: false, // false | ||
PayIfOrigPays: false, // false | ||
ForwardersPayForceOriginatorToPay: false, // false | ||
WaitingEnabled: false, // false | ||
RetryWithAnotherPeer: false, // false | ||
CacheIsEnabled: false, // false | ||
PreferredChunks: false, // false | ||
AdjustableThreshold: false, // false | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.