mirror of
https://github.com/LukeHagar/wasm-overhead-research.git
synced 2025-12-06 04:22:06 +00:00
- 5 different JS-to-WASM implementations analyzed - QuickJS (283KB) and Javy Static (519KB) are Wasmer-compatible - Comprehensive size analysis and runtime compatibility testing - Complete documentation and build automation - Wasmer v6.1.0-rc.2 dynamic linking analysis included
20 lines
502 B
JavaScript
20 lines
502 B
JavaScript
import { transformData } from "./quickjs-wasi-adapter.js";
|
|
|
|
const testData = JSON.stringify({
|
|
users: [
|
|
{ name: "Alice", age: 30 },
|
|
{ name: "Bob", age: 25 },
|
|
],
|
|
});
|
|
|
|
console.log("Testing QuickJS-WASI implementation...");
|
|
console.log("Input:", testData);
|
|
|
|
try {
|
|
const result = transformData(testData);
|
|
console.log("Output:", result);
|
|
console.log("✅ QuickJS-WASI implementation working!");
|
|
} catch (error) {
|
|
console.error("❌ QuickJS-WASI implementation failed:", error.message);
|
|
}
|