Avatar for the langchain-ai user
langchain-ai
quickjs-rs
BlogDocsChangelog

feat: add ThreadWorker utility for !Send Runtime/Context pinning

#12Merged
Comparing
cc/thread_worker
(
1619fe4
) with
main
(
c6a2110
)
CodSpeed Performance Gauge
-15%
Regression
1
Untouched
29

Benchmarks

30 total
bench_runtime_create
benchmarks/test_startup.py
CodSpeed Performance Gauge
-15%
10.5 µs12.4 µs
bench_eval_string_concat
benchmarks/test_eval_sync.py
CodSpeed Performance Gauge
+3%
3.9 µs3.8 µs
bench_host_call_identity_dict
benchmarks/test_host_functions.py
CodSpeed Performance Gauge
+3%
4.8 µs4.6 µs
bench_context_create
benchmarks/test_startup.py
CodSpeed Performance Gauge
+3%
157.2 µs152.8 µs
bench_eval_async_immediate_host
benchmarks/test_eval_async.py
CodSpeed Performance Gauge
+2%
100.7 µs98.8 µs
bench_eval_json_parse_10kb
benchmarks/test_eval_sync.py
CodSpeed Performance Gauge
+2%
225.7 µs221.9 µs
bench_context_create_10x
benchmarks/test_startup.py
CodSpeed Performance Gauge
+2%
1.6 ms1.6 ms
bench_marshal_dict_nested_5
benchmarks/test_marshaling.py
CodSpeed Performance Gauge
+2%
6.2 µs6.1 µs
bench_eval_regex
benchmarks/test_eval_sync.py
CodSpeed Performance Gauge
+1%
32 µs31.7 µs
bench_eval_async_sequential_10
benchmarks/test_eval_async.py
CodSpeed Performance Gauge
+1%
286.8 µs285 µs
bench_runtime_and_context
benchmarks/test_startup.py
CodSpeed Performance Gauge
0%
121.2 µs120.7 µs
bench_host_call_100x_loop
benchmarks/test_host_functions.py
CodSpeed Performance Gauge
0%
50.4 µs50.2 µs
bench_eval_json_parse
benchmarks/test_eval_sync.py
CodSpeed Performance Gauge
0%
16.7 µs16.7 µs
bench_marshal_string_100kb
benchmarks/test_marshaling.py
CodSpeed Performance Gauge
0%
29.1 µs29.1 µs
bench_eval_object_create_1k
benchmarks/test_eval_sync.py
CodSpeed Performance Gauge
0%
513.6 µs513.5 µs
bench_eval_arithmetic
benchmarks/test_eval_sync.py
CodSpeed Performance Gauge
0%
3.2 µs3.2 µs
bench_eval_loop_1m
benchmarks/test_eval_sync.py
CodSpeed Performance Gauge
0%
24 ms24 ms
bench_host_call_async_noop
benchmarks/test_host_functions.py
CodSpeed Performance Gauge
0%
98.1 µs98.1 µs
bench_eval_async_fan_out_10
benchmarks/test_eval_async.py
CodSpeed Performance Gauge
0%
206.1 µs206.4 µs
bench_marshal_int
benchmarks/test_marshaling.py
CodSpeed Performance Gauge
0%
3.6 µs3.6 µs
bench_host_call_identity_int
benchmarks/test_host_functions.py
CodSpeed Performance Gauge
0%
3.8 µs3.8 µs
bench_eval_fibonacci_30
benchmarks/test_eval_sync.py
CodSpeed Performance Gauge
-1%
106 ms106.6 ms
bench_marshal_list_10k_ints
benchmarks/test_marshaling.py
CodSpeed Performance Gauge
-1%
807.2 µs812.1 µs
bench_marshal_bytes_1mb
benchmarks/test_marshaling.py
CodSpeed Performance Gauge
-1%
81.4 µs81.9 µs
bench_host_call_noop
benchmarks/test_host_functions.py
CodSpeed Performance Gauge
-1%
3.2 µs3.3 µs

Commits

Click on a commit to change the comparison range
Base
main
c6a2110
-14.81%
add ThreadWorker
1619fe4
4 days ago
by ccurme
© 2026 CodSpeed Technology
Home Terms Privacy Docs