-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
79 lines (73 loc) · 2.43 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
from typing import List
from harness import Suite, Benchmark, MakeWasm, Wat
BENCHMARK_SUITES: List[Suite] = [
Suite(
path="c10m",
benchmarks=[
MakeWasm(file=wasm)
for wasm in ["c10m_bespoke", "c10m_asyncify", "c10m_wasmfx", "c10m_wasmfx_fiber"]
],
),
Suite(
path="sieve",
benchmarks=[
MakeWasm(file=wasm)
for wasm in ["sieve_bespoke", "sieve_asyncify", "sieve_wasmfx", "sieve_wasmfx_fiber"]
],
),
Suite(
path="skynet",
benchmarks=[
MakeWasm(file=wasm)
for wasm in ["skynet_bespoke", "skynet_asyncify", "skynet_wasmfx", "skynet_wasmfx_fiber"]
],
),
Suite(
path="state",
benchmarks=[
MakeWasm(file=wasm)
for wasm in ["state_bespoke", "state_asyncify", "state_wasmfx", "state_wasmfx_fiber"]
],
),
Suite(path="micro/suspend_resume", benchmarks=[Wat("bench", invoke="run")]),
Suite(path="micro/2resumes_same_function", benchmarks=[Wat("bench", invoke="run")]),
]
MIMALLOC_REVISION = "v2.1.2"
# WebAssembly/binaryen#main as of August 9, 2024
BINARYEN_REVISION = "3386e642c76028438fc783bf97089115ea9a900f"
# wasmfx/wasmfxtime#main as of August 7, 2024
WASMTIME_REVISION = "41c90734bf069d2487dc6d7121372f6295cf43f2"
# wasmfx/specfx#main as of August 7, 2024
SPEC_REVISION = "6d01dfc84d8d9bba6cfeedb0aa078918b082dd3c"
WASMTIME_CARGO_BUILD_ARGS = [
"--features=default,unsafe_disable_continuation_linearity_check"
]
WASMTIME_RUN_ARGS = [
"-W=exceptions,function-references,typed-continuations",
"-Ccache=n",
"-Wwasmfx-stack-size=4096",
"-Wwasmfx-red-zone-size=0",
]
WASMTIME_COMPILE_ARGS = [
"-W=exceptions,function-references,typed-continuations",
"-Ccache=n",
]
# Github repos used by setup command.
# First entry is the initial/root commit of the corresponding repo.
# List entries are of the form (github_user_name, repo_name)
GITHUB_REPOS = {
"mimalloc": (
"234e3a57daa9f2dadc8a57c93d90adce2bbe962e",
[("microsoft", "mimalloc")],
),
"spec": ("ec38c06717612db984314ceef08878838e1fd9ee", [("wasmfx", "specfx")]),
"binaryen": (
"5c839bb462f43f7a356593f537edb08014d0f25f",
[("webassembly", "binaryen")],
),
"wasmtime": (
"399be07fcf00d0974d2a83d1af55f0bee9861d54",
[("wasmfx", "wasmfxtime"), ("bytecodealliance", "wasmtime")],
),
}
WASI_SDK_VERSION = "22"