rock-req 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +24 -21
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -57,17 +57,17 @@ Stop using "slow-by-default" and "false-light" HTTP request libraries!
57
57
  **2025-11-14 on MacBook Pro M4 Max with all dependencies updated on this date**
58
58
 
59
59
 
60
- | Library | NodeJS 22 | NodeJS 24 | NodeJS 25 | Bun v1.3.2 | Size deps inc (2025/2023) |
61
- |--------------|---------------:|---------------:|---------------:|---------------:|---------------------------:|
62
- | rock-req 🙋‍♂️ | 26842 req/s | 26782 req/s | 26179 req/s | 21229 req/s | 152 LOC (+5%) |
63
- | simple-get | 26532 req/s | 26802 req/s | 25954 req/s | 21187 req/s | 317 LOC (+0%) |
64
- | axios | 4110 req/s | 3999 req/s | 3996 req/s | 14788 req/s | 19883 LOC (+42%) |
65
- | got | 14786 req/s | 15234 req/s | 15149 req/s | 15287 req/s | 16904 LOC (+83%) |
66
- | fetch | 15676 req/s | 16252 req/s | 15784 req/s | 27675 req/s | 54211 LOC (+306%) |
67
- | request | 17102 req/s | 14586 req/s | 14346 req/s | 18202 req/s | 58057 LOC (+24%) |
68
- | superagent | 3862 req/s | 3979 req/s | 3889 req/s | 19271 req/s | 31913 LOC (+98%) |
69
- | phin | 15549 req/s | 14160 req/s | 13915 req/s | 15430 req/s | 20064 LOC (+5960%) |
70
- | _undici_* | 32480 req/s | 33272 req/s | 32738 req/s | 25961 req/s | 23235 LOC (+43%) |
60
+ | Library | NodeJS 22 | NodeJS 24 | NodeJS 25 | Bun v1.3.2 | LOC (2025/2023) |
61
+ |--------------|-----------:|------------:|---------:|-----------:|----------------:|
62
+ | rock-req 🙋‍♂️ | 26842 ops | 26782 ops | 26179 ops | 21229 ops | 152 (+5%) |
63
+ | simple-get | 26532 ops | 26802 ops | 25954 ops | 21187 ops | 317 (+0%) |
64
+ | axios | 4110 ops | 3999 ops | 3996 ops | 14788 ops | 19883 (+42%) |
65
+ | got | 14786 ops | 15234 ops | 15149 ops | 15287 ops | 16904 (+83%) |
66
+ | fetch | 15676 ops | 16252 ops | 15784 ops | 27675 ops | 54211 (+306%) |
67
+ | request | 17102 ops | 14586 ops | 14346 ops | 18202 ops | 58057 (+24%) |
68
+ | superagent | 3862 ops | 3979 ops | 3889 ops | 19271 ops | 31913 (+98%) |
69
+ | phin | 15549 ops | 14160 ops | 13915 ops | 15430 ops | 20064 (+5960%) |
70
+ | _undici_* | 32480 ops | 33272 ops | 32738 ops | 25961 ops | 23235 (+43%) |
71
71
 
72
72
 
73
73
  **2023-04-19 on Macbook Pro M1 Max with all dependencies updated on this date**
@@ -75,16 +75,19 @@ Stop using "slow-by-default" and "false-light" HTTP request libraries!
75
75
 
76
76
  | Library | NodeJS 16 | NodeJS 18 | NodeJS 20* | Size deps inc. |
77
77
  | ------------ |--------------:|--------------:| --------------:| --------------:|
78
- | rock-req 🙋‍♂️ | 22816 req/s | 21797 req/s | 21964 req/s | 144 LOC |
79
- | simple-get | 2937 req/s | 3260 req/s | 21258 req/s | 317 LOC |
80
- | axios | 5090 req/s | 4910 req/s | 3196 req/s | 13983 LOC |
81
- | got | 2163 req/s | 1762 req/s | 9961 req/s | 9227 LOC |
82
- | fetch | 2101 req/s | 2102 req/s | 2020 req/s | 13334 LOC |
83
- | request | 2249 req/s | 1869 req/s | 15815 req/s | 46572 LOC |
84
- | superagent | 2776 req/s | 2100 req/s | 2895 req/s | 16109 LOC |
85
- | phin | 3178 req/s | 1164 req/s | 21299 req/s | 331 LOC |
86
- | _undici_* | 24095 req/s | 24378 req/s | 24191 req/s | 16225 LOC |
87
-
78
+ | rock-req 🙋‍♂️ | 22816 ops | 21797 ops | 21964 ops | 144 LOC |
79
+ | simple-get | 2937 ops | 3260 ops | 21258 ops | 317 LOC |
80
+ | axios | 5090 ops | 4910 ops | 3196 ops | 13983 LOC |
81
+ | got | 2163 ops | 1762 ops | 9961 ops | 9227 LOC |
82
+ | fetch | 2101 ops | 2102 ops | 2020 ops | 13334 LOC |
83
+ | request | 2249 ops | 1869 ops | 15815 ops | 46572 LOC |
84
+ | superagent | 2776 ops | 2100 ops | 2895 ops | 16109 LOC |
85
+ | phin | 3178 ops | 1164 ops | 21299 ops | 331 LOC |
86
+ | _undici_* | 24095 ops | 24378 ops | 24191 ops | 16225 LOC |
87
+
88
+
89
+ > `LOC` = Lines of Code, including dependencies (excluding dev dependencies)
90
+ > `ops` = request per second
88
91
 
89
92
  > Since Node.js 20, HTTP keep-alive is activated by default, just like in `rock-req`. This improves the overall performance of all frameworks.
90
93
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rock-req",
3
3
  "description": "Ultra-light (150 LOC, No dependencies) & Ultra-fast request library with reliable retry on failure, http/https, redirects, gzip/deflate/brotli, extensible, proxy, streams, JSON mode, forms, timeout",
4
- "version": "5.2.0",
4
+ "version": "5.2.1",
5
5
  "author": {
6
6
  "name": "David Grelaud & Feross Aboukhadijeh"
7
7
  },