mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
Add pwritev to wasm/js api
This commit is contained in:
@@ -13,7 +13,7 @@ from typing import Dict
|
||||
from cli_tests.console import error, info, test
|
||||
from cli_tests.test_turso_cli import TestTursoShell
|
||||
|
||||
LIMBO_BIN = Path("./target/release/tursodb")
|
||||
LIMBO_BIN = Path("./target/debug/tursodb")
|
||||
DB_FILE = Path("testing/temp.db")
|
||||
vfs_list = ["syscall"]
|
||||
if platform.system() == "Linux":
|
||||
@@ -79,11 +79,13 @@ def main() -> None:
|
||||
averages: Dict[str, float] = {}
|
||||
|
||||
for vfs in vfs_list:
|
||||
setup_temp_db()
|
||||
test(f"\n### VFS: {vfs} ###")
|
||||
times = bench_one(vfs, sql, iterations)
|
||||
info(f"All times ({vfs}):", " ".join(f"{t:.6f}" for t in times))
|
||||
avg = statistics.mean(times)
|
||||
averages[vfs] = avg
|
||||
cleanup_temp_db()
|
||||
|
||||
info("\n" + "-" * 60)
|
||||
info("Average runtime per VFS")
|
||||
@@ -106,7 +108,6 @@ def main() -> None:
|
||||
faster_slower = "slower" if pct > 0 else "faster"
|
||||
info(f"{vfs:<{name_pad}} : {avg:.6f} ({abs(pct):.1f}% {faster_slower} than {baseline})")
|
||||
info("-" * 60)
|
||||
cleanup_temp_db()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user