Browse Source

Fix benchmarks

Signed-off-by: Gavin Howard <gavin@yzena.com>
master
Gavin Howard 2 months ago
parent
commit
317169bfdb
Signed by: gavin GPG Key ID: C08038BDF280D33E
  1. 4
      benchmarks/bc/arrays.bc
  2. 3
      benchmarks/bc/arrays_and_constants.bc
  3. 4
      benchmarks/bc/bitfuncs.bc
  4. 4
      benchmarks/bc/functions.bc
  5. 3
      benchmarks/bc/irand_long.bc
  6. 4
      benchmarks/bc/irand_short.bc
  7. 4
      benchmarks/bc/lib.bc
  8. 4
      benchmarks/bc/postfix_incdec.bc
  9. 4
      benchmarks/bc/strings.bc

4
benchmarks/bc/arrays.bc

@ -32,3 +32,7 @@ max = 1000000
for (i = 0; i < max; ++i) {
print "a", i, "[0] = ", i, "\n"
}
print "halt\n"
halt

3
benchmarks/bc/arrays_and_constants.bc

@ -33,3 +33,6 @@ for (i = 0; i < max; ++i) {
print "b", i, "[100] = ", i, "\n"
}
print "halt\n"
halt

4
benchmarks/bc/bitfuncs.bc

@ -13,6 +13,6 @@ for (i = 0; i < max; ++i) {
print "band(", a, ", ", b, ")\n"
print "bor(", a, ", ", b, ")\n"
print "bxor(", a, ", ", b, ")\n"
print "blshift(", a, ", ", b % 32, ")\n"
print "brshift(", a, ", ", b % 32, ")\n"
print "bshl(", a, ", ", b % 32, ")\n"
print "bshr(", a, ", ", b % 32, ")\n"
}

4
benchmarks/bc/functions.bc

@ -32,3 +32,7 @@ max = 1000000
for (i = 0; i < max; ++i) {
print "define etsna", i, "(n) {\n\tn\n}\n"
}
print "halt\n"
halt

3
benchmarks/bc/irand_long.bc

@ -7,3 +7,6 @@ for (i = start; i < end; ++i) {
print "irand(", i, ")\n"
}
print "halt\n"
halt

4
benchmarks/bc/irand_short.bc

@ -3,3 +3,7 @@
for (i = 2; i < 10000000; ++i) {
print "irand(", i, ")\n"
}
print "halt\n"
halt

4
benchmarks/bc/lib.bc

@ -5,3 +5,7 @@ print " v = pi(i)\n"
print " v = e(v)\n"
print " v = l(v)\n"
print "}\n"
print "halt\n"
halt

4
benchmarks/bc/postfix_incdec.bc

@ -5,3 +5,7 @@ max = 1000000
for (i = 0; i < max; ++i) {
print "i++\ni--\n"
}
print "halt\n"
halt

4
benchmarks/bc/strings.bc

@ -34,3 +34,7 @@ print "\qasotehnuasnotehustnaoheusntaoheustnaoheusntaoehunsatoheuastoehuaosnetuh
for (i = 0; i < max; ++i) {
print "\qabc", i, " = ", i, "\\n\q\n"
}
print "halt\n"
halt

Loading…
Cancel
Save