Skip to content

Commit 18cb207

Browse files
committed
Update docs
1 parent 064058b commit 18cb207

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

docs/guide/rule-engines/index.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,16 @@ httpjail provides three different rule engines for evaluating HTTP requests. Eac
44

55
## Engine Comparison
66

7-
| Feature | JavaScript (V8) | Shell Script | Line Processor |
8-
|---------|----------------|--------------|----------------|
9-
| **Performance** | | | |
10-
| Per-Jail Overhead | None* | None | Process spawn (~2ms) |
11-
| Per-Request Overhead | ~1-2ms** | ~2-5ms*** | <1ms**** |
12-
| **Capabilities** | | | |
13-
| Stateful Processing ||||
14-
| External Tool Access ||||
15-
| Language Choice | JS only | Any | Any |
16-
| Sandboxed Execution ||| Depends |
17-
| Development Complexity | Easy | Easy | Moderate |
18-
19-
\* V8 engine is created per-request, not per-jail (no persistent context)
20-
\*\* Creates new V8 isolate + compiles JS for each request
21-
\*\*\* Process spawn + script execution (similar to line processor startup)
22-
\*\*\*\* Simple IPC: write JSON line, read response line
7+
| Feature | JavaScript (V8) | Shell Script | Line Processor |
8+
| ---------------------- | --------------- | ------------ | -------------- |
9+
| **Performance** | | | |
10+
| Per-Request Overhead | ~100µs | ~1-3ms | ~100µs |
11+
| **Capabilities** | | | |
12+
| Stateful Processing ||||
13+
| External Tool Access ||||
14+
| Language Choice | JS only | Any | Any |
15+
| Sandboxed Execution ||| Depends |
16+
| Development Complexity | Easy | Easy | Moderate |
2317

2418
## Examples
2519

0 commit comments

Comments
 (0)