diff options
| author | eunhhu <[email protected]> | 2026-09-27 13:14:38 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-27 13:14:38 +0100 |
| commit | 37d3a1e152707d2da587440c4cea8601b9ef0fd2 (patch) | |
| tree | 1a4cbea9d8ca636deabd8fc24b0d73cdae2bdaef /benchmarks/http | |
| parent | 5372d03b5968796515966e2cfc89628d6448f0c1 (diff) | |
| download | pure-37d3a1e152707d2da587440c4cea8601b9ef0fd2.tar.gz pure-37d3a1e152707d2da587440c4cea8601b9ef0fd2.zip | |
Lay Pure out as a core with the parts selected around it
The app model, the tree store and the HTTP host lived in
prototypes/connections among the earlier document runtime, the store was
known only by its format's name, and Vega compiled six Pure sources by path.
Now, as the README's principle has it:
core/ runtime, flow and the app model (module*.c), with what the core
asks of storage (state.h, store.h)
store/ the tree store (PURETRE3, PUREREC1)
serve/ pure-serve: HTTP host, outbound delivery, JSON in place
cli/ pure-run, pure-edit-module
A top-level make builds libpure.a (app model and store, for hosts to link)
and the hosts; make check runs the store's and the app model's tests. The
earlier runtime still builds from prototypes/connections against core/ and
store/ (check, check-tree and check-core pass). Design 009 records the rule:
parts by role behind libraries; git repositories split by coupling, so the
store stays here while its contract moves with the core, and Vega stays apart.
Diffstat (limited to 'benchmarks/http')
| -rw-r--r-- | benchmarks/http/README.md | 2 | ||||
| -rw-r--r-- | benchmarks/http/run.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/benchmarks/http/README.md b/benchmarks/http/README.md index af9f62d..22fc6d3 100644 --- a/benchmarks/http/README.md +++ b/benchmarks/http/README.md @@ -7,7 +7,7 @@ Pure의 문서 서버들과 같은 계약의 axum(Rust)·drogon(C++) 서비스� cc -O2 -std=c17 -o load load.c (cd axum-baseline && cargo build --release) drogon-baseline/build.sh # Debian의 drogon 패키지를 설치하지 않고 .deps에 풀어 빌드한다 -make -C ../../prototypes/connections build/pure-serve +make -C ../.. build/pure-serve make -C ../../prototypes/connections BUILD=build/tree STORE=store-tree.c build/tree/pure-connections aup build ../../../aup/examples/editor.aup -o editor.pmod python3 run.py --module editor.pmod --directory /var/tmp # 저장소를 둘 장치에서 diff --git a/benchmarks/http/run.py b/benchmarks/http/run.py index bad9cc4..4605226 100644 --- a/benchmarks/http/run.py +++ b/benchmarks/http/run.py @@ -38,7 +38,8 @@ import http.client from pathlib import Path HERE = Path(__file__).resolve().parent -PURE = HERE.parent.parent / 'prototypes' / 'connections' +PURE = HERE.parent.parent # build/pure-serve; the earlier document server stays in prototypes/connections +PROTOTYPES = PURE / "prototypes" / "connections" def start(args): @@ -145,7 +146,7 @@ def main(): drogon = HERE / 'drogon-baseline/drogon-baseline' base = Path(tempfile.mkdtemp(dir=args.directory, prefix='pure-http-bench-')) servers = { - 'pure-program': lambda d: [PURE / 'build/tree/pure-connections', '--program', PURE / 'examples/editor.pure', + 'pure-program': lambda d: [PROTOTYPES / 'build/tree/pure-connections', '--program', PROTOTYPES / 'examples/editor.pure', '--store', d, '--port', '0', '--budget', str(args.budget)], 'pure-serve': lambda d: [PURE / 'build/pure-serve', '--module', args.module, '--store', d, '--port', '0', '--budget', str(args.budget)], |
