Model Name: MacBook Pro
Model Identifier: Mac16,1
Model Number: MW2U3LL/A
Chip: Apple M4
Total Number of Cores: 10 (4 performance and 6 efficiency)
Memory: 16 GB
System Firmware Version: 13822.1.2
OS Loader Version: 13822.1.2nats bench js fetch uses the Fetch() function on a durable consumer to receive messages in batches.nats-server -m 8222 -js[[2932] 2025/10/28 12:29:02.879297 [INF] Starting nats-server
[2932] 2025/10/28 12:29:02.879658 [INF] Version: 2.12.1
[2932] 2025/10/28 12:29:02.879661 [INF] Git: [fab5f99]
[2932] 2025/10/28 12:29:02.879664 [INF] Name: NBIYCV5UNYPP2ZBZJZNGQ7UJNJILSQZCD6MK2CPWU6UY7PHYPKWOYYS4
[2932] 2025/10/28 12:29:02.879667 [INF] Node: YNleYaHo
[2932] 2025/10/28 12:29:02.879668 [INF] ID: NBIYCV5UNYPP2ZBZJZNGQ7UJNJILSQZCD6MK2CPWU6UY7PHYPKWOYYS4
[2932] 2025/10/28 12:29:02.880586 [INF] Starting http monitor on 0.0.0.0:8222
[2932] 2025/10/28 12:29:02.880696 [INF] Starting JetStream
[2932] 2025/10/28 12:29:02.880755 [WRN] Temporary storage directory used, data could be lost on system reboot
[2932] 2025/10/28 12:29:02.881014 [INF] _ ___ _____ ___ _____ ___ ___ _ __ __
[2932] 2025/10/28 12:29:02.881018 [INF] _ | | __|_ _/ __|_ _| _ \ __| /_\ | \/ |
[2932] 2025/10/28 12:29:02.881019 [INF] | || | _| | | \__ \ | | | / _| / _ \| |\/| |
[2932] 2025/10/28 12:29:02.881020 [INF] \__/|___| |_| |___/ |_| |_|_\___/_/ \_\_| |_|
[2932] 2025/10/28 12:29:02.881020 [INF]
[2932] 2025/10/28 12:29:02.881021 [INF] https://docs.nats.io/jetstream
[2932] 2025/10/28 12:29:02.881022 [INF]
[2932] 2025/10/28 12:29:02.881022 [INF] ---------------- JETSTREAM ----------------
[2932] 2025/10/28 12:29:02.881023 [INF] Strict: true
[2932] 2025/10/28 12:29:02.881026 [INF] Max Memory: 12.00 GB
[2932] 2025/10/28 12:29:02.881027 [INF] Max Storage: 233.86 GB
[2932] 2025/10/28 12:29:02.881027 [INF] Store Directory: "/var/folders/cx/x13pjm0n3ds6w4q_4xhr_c0r0000gn/T/nats/jetstream"
[2932] 2025/10/28 12:29:02.881029 [INF] API Level: 2
[2932] 2025/10/28 12:29:02.881030 [INF] -------------------------------------------
[2932] 2025/10/28 12:29:02.881335 [INF] Listening for client connections on 0.0.0.0:4222
[2932] 2025/10/28 12:29:02.881434 [INF] Server is readynats bench pub foo --size 16 --msgs 100000012:45:18 Starting Core NATS publisher benchmark [clients=1, msg-size=16 B, msgs=1,000,000, multi-subject=false, multi-subject-max=100,000, sleep=0s, subject=foo]
12:45:18 [1] Starting Core NATS publisher, publishing 1,000,000 messages
Finished 0s [================================================================] 100%
NATS Core NATS publisher stats: 14,786,683 msgs/sec ~ 226 MiB/sec ~ 0.07usnats bench sub foo --size 16 --msgs 1000000nats bench pub foo --size 16 --msgs 100000013:15:53 Starting Core NATS publisher benchmark [clients=1, msg-size=16 B, msgs=1,000,000, multi-subject=false, multi-subject-max=100,000, sleep=0s, subject=foo]
13:15:53 [1] Starting Core NATS publisher, publishing 1,000,000 messages
Finished 0s [================================================================] 100%
NATS Core NATS publisher stats: 4,925,767 msgs/sec ~ 75 MiB/sec ~ 0.20us13:15:50 Starting Core NATS subscriber benchmark [clients=1, msg-size=16 B, msgs=1,000,000, multi-subject=false, subject=foo]
13:15:50 [1] Starting Core NATS subscriber, expecting 1,000,000 messages
Finished 0s [============================================================] 100%
NATS Core NATS subscriber stats: 4,928,153 msgs/sec ~ 75 MiB/sec ~ 0.20usnats bench pub foo --size 16kb13:20:18 Starting Core NATS publisher benchmark [clients=1, msg-size=16 KiB, msgs=100,000, multi-subject=false, multi-subject-max=100,000, sleep=0s, subject=foo]
13:20:18 [1] Starting Core NATS publisher, publishing 100,000 messages
Finished 0s [================================================================] 100%
NATS Core NATS publisher stats: 230,800 msgs/sec ~ 3.5 GiB/sec ~ 4.33usnats bench sub foo --size 16kb13:20:15 Starting Core NATS subscriber benchmark [clients=1, msg-size=16 KiB, msgs=100,000, multi-subject=false, subject=foo]
13:20:15 [1] Starting Core NATS subscriber, expecting 100,000 messages
Finished 0s [============================================================] 100%
NATS Core NATS subscriber stats: 226,091 msgs/sec ~ 3.4 GiB/sec ~ 4.42usnats bench sub foo --clients 4nats bench pub foo13:34:26 Starting Core NATS publisher benchmark [clients=1, msg-size=128 B, msgs=100,000, multi-subject=false, multi-subject-max=100,000, sleep=0s, subject=foo]
13:34:26 [1] Starting Core NATS publisher, publishing 100,000 messages
Finished 0s [================================================================] 100%
NATS Core NATS publisher stats: 1,012,200 msgs/sec ~ 124 MiB/sec ~ 0.99us13:34:24 Starting Core NATS subscriber benchmark [clients=4, msg-size=128 B, msgs=100,000, multi-subject=false, subject=foo]
13:34:24 [1] Starting Core NATS subscriber, expecting 100,000 messages
13:34:24 [2] Starting Core NATS subscriber, expecting 100,000 messages
13:34:24 [3] Starting Core NATS subscriber, expecting 100,000 messages
13:34:24 [4] Starting Core NATS subscriber, expecting 100,000 messages
Finished 0s [============================================================] 100%
Finished 0s [============================================================] 100%
Finished 0s [============================================================] 100%
Finished 0s [============================================================] 100%
[1] 1,013,938 msgs/sec ~ 124 MiB/sec ~ 0.99us (100,000 msgs)
[2] 1,014,120 msgs/sec ~ 124 MiB/sec ~ 0.99us (100,000 msgs)
[3] 1,007,242 msgs/sec ~ 123 MiB/sec ~ 0.99us (100,000 msgs)
[4] 1,004,311 msgs/sec ~ 123 MiB/sec ~ 1.00us (100,000 msgs)
NATS Core NATS subscriber aggregated stats: 4,015,923 msgs/sec ~ 490 MiB/sec
message rates min 1,004,311 | avg 1,009,902 | max 1,014,120 | stddev 4,254 msgs
avg latencies min 0.99us | avg 0.99us | max 1.00us | stddev 0.00usnats bench sub foo --clients 4 --msgs 1000000nats bench pub foo --clients 4 --msgs 100000013:40:24 Starting Core NATS publisher benchmark [clients=4, msg-size=128 B, msgs=1,000,000, multi-subject=false, multi-subject-max=100,000, sleep=0s, subject=foo]
13:40:24 [1] Starting Core NATS publisher, publishing 250,000 messages
13:40:24 [2] Starting Core NATS publisher, publishing 250,000 messages
13:40:24 [3] Starting Core NATS publisher, publishing 250,000 messages
13:40:24 [4] Starting Core NATS publisher, publishing 250,000 messages
Finished 0s [================================================================] 100%
Finished 0s [================================================================] 100%
Finished 0s [================================================================] 100%
Finished 0s [================================================================] 100%
[1] 272,785 msgs/sec ~ 33 MiB/sec ~ 3.67us (250,000 msgs)
[2] 271,251 msgs/sec ~ 33 MiB/sec ~ 3.69us (250,000 msgs)
[3] 270,340 msgs/sec ~ 33 MiB/sec ~ 3.70us (250,000 msgs)
[4] 270,040 msgs/sec ~ 33 MiB/sec ~ 3.70us (250,000 msgs)
NATS Core NATS publisher aggregated stats: 1,080,144 msgs/sec ~ 132 MiB/sec
message rates min 270,040 | avg 271,104 | max 272,785 | stddev 1,068 msgs
avg latencies min 3.67us | avg 3.69us | max 3.70us | stddev 0.01us13:40:18 Starting Core NATS subscriber benchmark [clients=4, msg-size=128 B, msgs=1,000,000, multi-subject=false, subject=foo]
13:40:18 [1] Starting Core NATS subscriber, expecting 1,000,000 messages
13:40:18 [2] Starting Core NATS subscriber, expecting 1,000,000 messages
13:40:18 [3] Starting Core NATS subscriber, expecting 1,000,000 messages
13:40:18 [4] Starting Core NATS subscriber, expecting 1,000,000 messages
Finished 0s [============================================================] 100%
Finished 0s [============================================================] 100%
Finished 0s [============================================================] 100%
Finished 0s [============================================================] 100%
[1] 1,080,830 msgs/sec ~ 132 MiB/sec ~ 0.93us (1,000,000 msgs)
[2] 1,080,869 msgs/sec ~ 132 MiB/sec ~ 0.93us (1,000,000 msgs)
[3] 1,080,849 msgs/sec ~ 132 MiB/sec ~ 0.93us (1,000,000 msgs)
[4] 1,080,821 msgs/sec ~ 132 MiB/sec ~ 0.93us (1,000,000 msgs)
NATS Core NATS subscriber aggregated stats: 4,323,201 msgs/sec ~ 528 MiB/sec
message rates min 1,080,821 | avg 1,080,842 | max 1,080,869 | stddev 18 msgs
avg latencies min 0.93us | avg 0.93us | max 0.93us | stddev 0.00usnats bench service serve foonats bench service request foo13:46:43 Starting Core NATS service requester benchmark [clients=1, msg-size=128 B, msgs=100,000, sleep=0s, subject=foo]
13:46:43 [1] Starting Core NATS service requester, requesting 100,000 messages
Finished 5s [================================================================] 100%
NATS Core NATS service requester stats: 19,659 msgs/sec ~ 2.4 MiB/sec ~ 50.87usnats bench service serve foo --size 16 --clients 2nats bench service request foo --size 16 --clients 50 --no-progress13:57:56 Starting Core NATS service requester benchmark [clients=50, msg-size=16 B, msgs=100,000, sleep=0s, subject=foo]
13:57:56 [1] Starting Core NATS service requester, requesting 2,000 messages
13:57:56 [2] Starting Core NATS service requester, requesting 2,000 messages
...
13:57:56 [49] Starting Core NATS service requester, requesting 2,000 messages
13:57:56 [50] Starting Core NATS service requester, requesting 2,000 messages
[1] 2,735 msgs/sec ~ 43 KiB/sec ~ 365.62us (2,000 msgs)
[2] 2,700 msgs/sec ~ 42 KiB/sec ~ 370.24us (2,000 msgs)
...
[49] 2,651 msgs/sec ~ 41 KiB/sec ~ 377.14us (2,000 msgs)
[50] 2,649 msgs/sec ~ 41 KiB/sec ~ 377.48us (2,000 msgs)
NATS Core NATS service requester aggregated stats: 132,438 msgs/sec ~ 2.0 MiB/sec
message rates min 2,649 | avg 2,673 | max 2,735 | stddev 17 msgs
avg latencies min 365.62us | avg 373.93us | max 377.48us | stddev 2.43usnats bench js pub sync jsfoo --size 16 --create --storage memory18:47:47 Starting JetStream synchronous publisher benchmark [batch=0, clients=1, dedup-window=2m0s, deduplication=false, max-bytes=1,073,741,824, msg-size=16 B, msgs=100,000, multi-subject=false, multi-subject-max=100,000, purge=false, replicas=1, sleep=0s, storage=memory, stream=benchstream, subject=jsfoo]
18:47:47 Using stream: benchstream
18:47:47 [1] Starting JetStream synchronous publisher, publishing 100,000 messages
Publishing 2s [================================================================] 100%
NATS JetStream synchronous publisher stats: 35,734 msgs/sec ~ 558 KiB/sec ~ 27.98usnats bench js pub batch jsfoo --size 16 --batch 1000 --purge --storage memory18:51:27 Starting JetStream batched publisher benchmark [batch=1,000, clients=1, msg-size=16 B, msgs=100,000, multi-subject=false, multi-subject-max=100,000, purge=true, sleep=0s, stream=benchstream, subject=jsfoo]
18:51:27 Using stream: benchstream
18:51:27 Purging the stream
18:51:27 [1] Starting JetStream batched publisher, publishing 100,000 messages
Finished 0s [================================================================] 100%
NATS JetStream batched publisher stats: 627,430 msgs/sec ~ 9.6 MiB/sec ~ 1.59usnats stream rm -f benchstream
nats bench js pub async jsfoo --create13:09:34 Starting JetStream asynchronous publisher benchmark [batch=500, clients=1, dedup-window=2m0s, deduplication=false, max-bytes=1,073,741,824, msg-size=128 B, msgs=100,000, multi-subject=false, multi-subject-max=100,000, purge=false, replicas=1, sleep=0s, storage=file, stream=benchstream, subject=jsfoo]
13:09:34 Using stream: benchstream
13:09:34 [1] Starting JetStream asynchronous publisher, publishing 100,000 messages
Finished 0s [================================================================] 100%
NATS JetStream asynchronous publisher stats: 403,828 msgs/sec ~ 49 MiB/sec ~ 2.48usnats bench js ordered13:33:48 Starting JetStream ordered ephemeral consumer benchmark [clients=1, msg-size=128 B, msgs=100,000, purge=false, sleep=0s, stream=benchstream]
13:33:48 [1] Starting JetStream ordered ephemeral consumer, expecting 100,000 messages
Finished 0s [================================================================] 100%
NATS JetStream ordered ephemeral consumer stats: 1,201,540 msgs/sec ~ 147 MiB/sec ~ 0.83usnats bench js consume --clients 4 --no-progress13:46:04 Starting JetStream durable consumer (callback) benchmark [acks=explicit, batch=500, clients=4, consumer=nats-bench, double-acked=false, msg-size=128 B, msgs=100,000, purge=false, sleep=0s, stream=benchstream]
13:46:04 [1] Starting JetStream durable consumer (callback), expecting 25,000 messages
13:46:04 [2] Starting JetStream durable consumer (callback), expecting 25,000 messages
13:46:04 [3] Starting JetStream durable consumer (callback), expecting 25,000 messages
13:46:04 [4] Starting JetStream durable consumer (callback), expecting 25,000 messages
[1] 73,230 msgs/sec ~ 8.9 MiB/sec ~ 13.66us (25,000 msgs)
[2] 72,921 msgs/sec ~ 8.9 MiB/sec ~ 13.71us (25,000 msgs)
[3] 72,696 msgs/sec ~ 8.9 MiB/sec ~ 13.76us (25,000 msgs)
[4] 72,687 msgs/sec ~ 8.9 MiB/sec ~ 13.76us (25,000 msgs)
NATS JetStream durable consumer (callback) aggregated stats: 290,438 msgs/sec ~ 36 MiB/sec
message rates min 72,687 | avg 72,883 | max 73,230 | stddev 220 msgs
avg latencies min 13.66us | avg 13.72us | max 13.76us | stddev 0.04usnats bench js fetch --acks none --clients 214:09:10 Starting JetStream durable consumer (fetch) benchmark [acks=none, batch=500, clients=2, consumer=nats-bench, double-acked=false, msg-size=128 B, msgs=100,000, purge=false, sleep=0s, stream=benchstream]
14:09:10 [1] Starting JetStream durable consumer (fetch), expecting 50,000 messages
14:09:10 [2] Starting JetStream durable consumer (fetch), expecting 50,000 messages
Finished 0s [================================================================] 100%
Finished 0s [================================================================] 100%
[1] 567,330 msgs/sec ~ 69 MiB/sec ~ 1.76us (50,000 msgs)
[2] 567,067 msgs/sec ~ 69 MiB/sec ~ 1.76us (50,000 msgs)
NATS JetStream durable consumer (fetch) aggregated stats: 1,128,932 msgs/sec ~ 138 MiB/sec
message rates min 567,067 | avg 567,198 | max 567,330 | stddev 131 msgs
avg latencies min 1.76us | avg 1.76us | max 1.76us | stddev 0.00usnats bench js get sync14:13:30 Starting JetStream synchronous getter benchmark [clients=1, msg-size=128 B, msgs=100,000, sleep=0s, stream=benchstream]
14:13:30 [1] Starting JetStream synchronous getter, expecting 100,000 messages
Finished 3s [================================================================] 100%
NATS JetStream synchronous getter stats: 33,244 msgs/sec ~ 4.1 MiB/sec ~ 30.08usnats bench js get batch --clients 214:11:09 Starting JetStream batched direct getter benchmark [batch=500, clients=2, filter=>, msg-size=128 B, msgs=100,000, sleep=0s, stream=benchstream]
14:11:09 [1] Starting JetStream batched direct getter, expecting 100,000 messages
14:11:09 [2] Starting JetStream batched direct getter, expecting 100,000 messages
Finished 0s [================================================================] 100%
Finished 0s [================================================================] 100%
[1] 509,387 msgs/sec ~ 62 MiB/sec ~ 1.96us (100,000 msgs)
[2] 500,449 msgs/sec ~ 61 MiB/sec ~ 2.00us (100,000 msgs)
NATS JetStream batched direct getter aggregated stats: 1,000,898 msgs/sec ~ 122 MiB/sec
message rates min 500,449 | avg 504,918 | max 509,387 | stddev 4,469 msgs
avg latencies min 1.96us | avg 1.98us | max 2.00us | stddev 0.02usnats bench js ordered --purge --clients 8 --no-progressnats bench js pub async jsfoo --clients 8 --no-progress15:23:08 Starting JetStream asynchronous publisher benchmark [batch=500, clients=8, msg-size=128 B, msgs=100,000, multi-subject=false, multi-subject-max=100,000, purge=false, sleep=0s, stream=benchstream, subject=jsfoo]
15:23:08 Using stream: benchstream
15:23:08 [1] Starting JetStream asynchronous publisher, publishing 12,500 messages
15:23:08 [2] Starting JetStream asynchronous publisher, publishing 12,500 messages
...
15:23:08 [7] Starting JetStream asynchronous publisher, publishing 12,500 messages
15:23:08 [8] Starting JetStream asynchronous publisher, publishing 12,500 messages
[1] 33,289 msgs/sec ~ 4.1 MiB/sec ~ 30.04us (12,500 msgs)
[2] 33,242 msgs/sec ~ 4.1 MiB/sec ~ 30.08us (12,500 msgs)
...
[7] 31,947 msgs/sec ~ 3.9 MiB/sec ~ 31.30us (12,500 msgs)
[8] 31,586 msgs/sec ~ 3.9 MiB/sec ~ 31.66us (12,500 msgs)
NATS JetStream asynchronous publisher aggregated stats: 252,544 msgs/sec ~ 31 MiB/sec
message rates min 31,586 | avg 32,614 | max 33,289 | stddev 638 msgs
avg latencies min 30.04us | avg 30.67us | max 31.66us | stddev 0.60us 15:23:02 Starting JetStream ordered ephemeral consumer benchmark [clients=8, msg-size=128 B, msgs=100,000, purge=true, sleep=0s, stream=benchstream]
15:23:02 [1] Starting JetStream ordered ephemeral consumer, expecting 100,000 messages
15:23:02 [2] Starting JetStream ordered ephemeral consumer, expecting 100,000 messages
...
15:23:02 [7] Starting JetStream ordered ephemeral consumer, expecting 100,000 messages
15:23:02 [8] Starting JetStream ordered ephemeral consumer, expecting 100,000 messages
[1] 111,627 msgs/sec ~ 14 MiB/sec ~ 8.96us (100,000 msgs)
[2] 110,534 msgs/sec ~ 14 MiB/sec ~ 9.05us (100,000 msgs)
...
[7] 109,849 msgs/sec ~ 13 MiB/sec ~ 9.10us (100,000 msgs)
[8] 109,797 msgs/sec ~ 13 MiB/sec ~ 9.11us (100,000 msgs)
NATS JetStream ordered ephemeral consumer aggregated stats: 878,326 msgs/sec ~ 107 MiB/sec
message rates min 109,797 | avg 110,306 | max 111,627 | stddev 556 msgs
avg latencies min 8.96us | avg 9.07us | max 9.11us | stddev 0.05usnats bench kv put14:26:04 Starting JetStream KV putter benchmark [bucket=benchbucket, clients=1, msg-size=128 B, msgs=100,000, purge=false, sleep=0s]
14:26:04 [1] Starting JetStream KV putter, publishing 100,000 messages
Putting 3s [================================================================] 100%
NATS JetStream KV putter stats: 30,067 msgs/sec ~ 3.7 MiB/sec ~ 33.26usnats bench kv get --clients 16 --randomize 100000 --no-progress14:28:33 Starting JetStream KV getter benchmark [bucket=benchbucket, clients=16, msg-size=128 B, msgs=100,000, randomize=100,000, sleep=0s]
14:28:33 [1] Starting JetStream KV getter, trying to get 6,250 messages
14:28:33 [2] Starting JetStream KV getter, trying to get 6,250 messages
...
14:28:33 [15] Starting JetStream KV getter, trying to get 6,250 messages
14:28:33 [16] Starting JetStream KV getter, trying to get 6,250 messages
[1] 6,568 msgs/sec ~ 821 KiB/sec ~ 152.23us (6,250 msgs)
[2] 6,579 msgs/sec ~ 822 KiB/sec ~ 151.98us (6,250 msgs)
...
[15] 6,474 msgs/sec ~ 809 KiB/sec ~ 154.45us (6,250 msgs)
[16] 6,451 msgs/sec ~ 806 KiB/sec ~ 155.01us (6,250 msgs)
NATS JetStream KV getter aggregated stats: 102,844 msgs/sec ~ 13 MiB/sec
message rates min 6,448 | avg 6,509 | max 6,579 | stddev 40 msgs
avg latencies min 151.98us | avg 153.61us | max 155.08us | stddev 0.96us