mirror of
https://github.com/LukeHagar/wasm-overhead-research.git
synced 2025-12-06 04:22:06 +00:00
14 lines
319 B
Python
14 lines
319 B
Python
#!/usr/bin/env python3
|
|
"""Baseline Python app without Wasmer - for size comparison"""
|
|
|
|
def add(a, b):
|
|
return a + b
|
|
|
|
def main():
|
|
result = add(5, 3)
|
|
print(f"Result of add(5, 3): {result}")
|
|
assert result == 8, f"Expected 8, got {result}"
|
|
print("✓ Test passed!")
|
|
|
|
if __name__ == "__main__":
|
|
main() |