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]
| PUT employees | |
| { | |
| "mappings": { | |
| "properties": { | |
| "avg_worked_seconds": { | |
| "type": "long" | |
| }, | |
| "birth_date": { | |
| "type": "date" | |
| }, | 
| import trio | |
| class SyncBackend: | |
| def return_2(self): | |
| return 2 | |
| class AsyncBackend: | |
| async def return_2(self): | 
| import time | |
| import trio | |
| from trio_websocket import open_websocket_url | |
| async def send_one_message(i): | |
| try: | |
| async with open_websocket_url("ws://127.0.0.1:8000/foo") as ws: | |
| await ws.send_message(f"hello, {i}!") | 
| import trio | |
| async def producer(): | |
| for e in [1, 2, 3]: | |
| yield e | |
| async def consumer(iterator): | |
| total = 0 | 
| #!/usr/bin/env python3 | |
| import asyncio | |
| import time | |
| import aiohttp | |
| START = time.monotonic() | 
| import difflib | |
| import glob | |
| import os | |
| import sys | |
| from tokenize import tokenize as std_tokenize | |
| from tokenize import ASYNC, AWAIT, NAME | |
| import click | |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| rm -rf hostname | |
| wget \ | |
| -e robots=off \ | |
| --recursive --level=inf \ | |
| --no-verbose \ | |
| --page-requisites \ | |
| --convert-links \ | 
| "use strict"; | |
| let fs = require('fs'), | |
| _ = require('underscore'); | |
| function match_stuff(regexp, data, cb) { | |
| let match; | |
| while ((match = regexp.exec(data)) !== null) { | |
| cb(match[1]); | |
| } |