Using a M3 MacBook.
❯ hyperfine target/release/json-rust --warmup 5 --runs 10
Benchmark 1: target/release/json-rust
Time (mean ± σ): 8.475 s ± 0.020 s [User: 1.872 s, System: 6.595 s]
| import trio | |
| class SyncBackend: | |
| def return_2(self): | |
| return 2 | |
| class AsyncBackend: | |
| async def return_2(self): |
| PUT employees | |
| { | |
| "mappings": { | |
| "properties": { | |
| "avg_worked_seconds": { | |
| "type": "long" | |
| }, | |
| "birth_date": { | |
| "type": "date" | |
| }, |