Core-13 pure: add CI workflows, VM e2e tests, LLVM parity bridge (minimal); do not touch private docs

This commit is contained in:
Tomoaki
2025-09-07 07:28:53 +09:00
parent 07350c5dd9
commit d62114c705
383 changed files with 15221 additions and 382 deletions

View File

@ -0,0 +1,17 @@
// Interpreter-level microbench: Box create + drop inside loop
static box Main {
main() {
local i = 0
local total = 0
loop(i < 1000000) { // 1e6 iterations
{
// tmp goes out of scope each iteration
local tmp = new StringBox("x")
total = total + tmp.length()
}
i = i + 1
}
return total
}
}

View File

@ -0,0 +1,16 @@
// Interpreter-level microbench: Box create + drop (small loops for time-boxed runs)
static box Main {
main() {
local i = 0
local total = 0
loop(i < 10000) { // 1e4 iterations
{
local tmp = new StringBox("x")
total = total + tmp.length()
}
i = i + 1
}
return total
}
}

View File

@ -0,0 +1,14 @@
// Interpreter-level microbench: method call on preallocated Box
static box Main {
main() {
local i = 0
local s = new StringBox("nyash")
local total = 0
loop(i < 2000000) { // 2e6 method calls
total = total + s.length()
i = i + 1
}
return total
}
}

View File

@ -0,0 +1,13 @@
// Interpreter-level microbench: method call only (small loop for time-boxed runs)
static box Main {
main() {
local i = 0
local s = new StringBox("nyash")
local total = 0
loop(i < 5000) { // 5e3 method calls per run (faster per-run)
total = total + s.length()
i = i + 1
}
return total
}
}