improve tests (#3405)

This commit is contained in:
Alex Lam S.L
2019-05-11 22:03:41 +08:00
committed by alexlamsl
parent 9fc8cd4076
commit e88c439eac
6 changed files with 140 additions and 92 deletions

14
test/release/benchmark.js Normal file
View File

@@ -0,0 +1,14 @@
require("./run")([
"-b",
"-b braces",
"-m",
"-mc passes=3",
"-mc passes=3,toplevel",
"-mc passes=3,unsafe",
"-mc keep_fargs=false,passes=3",
"-mc keep_fargs=false,passes=3,pure_getters,unsafe,unsafe_comps,unsafe_math,unsafe_proto",
].map(function(options) {
var args = options.split(/ /);
args.unshift("test/benchmark.js");
return args;
}));