Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AVANZINI Martin
ecoimp
Commits
801f5172
Commit
801f5172
authored
May 09, 2020
by
AVANZINI Martin
Browse files
trader-1000000
parent
f4bf31de
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
app/RunTestbed.hs
View file @
801f5172
...
...
@@ -46,7 +46,7 @@ import PWhile.Util
main
::
IO
()
main
=
do
let
bnch
=
oopsla
let
?
to
=
5
let
?
to
=
60
as
<-
getArgs
case
as
of
(
"--run"
:
_
)
->
printBenchmark
bnch
...
...
examples/oopsla/trader-1000000.absynth
0 → 100644
View file @
801f5172
# Variation of linear/trader.imp
def trader():
var price, min, nShares, tick_z
while price > min and min >= 0:
prob (1,3):
price = price + 1
else:
price = price - 1
nShares = unif(0,1000000)
while nShares > 0:
nShares = nShares - 1
tick_z = tick_z + price
examples/oopsla/trader-1000000.pwhile
0 → 100644
View file @
801f5172
# Variation of linear/trader.imp
def trader():
var price, min, nShares
while price > min and min >= 0:
prob (1,3):
price = price + 1
else:
price = price - 1
nShares = unif(0,1000000)
while nShares > 0:
nShares = nShares - 1
tick price
results
View file @
801f5172
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment