tangerine 1.3.0 → 1.3.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.
- package/README.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -385,10 +385,10 @@ npm install
|
|
|
385
385
|
npm run benchmarks
|
|
386
386
|
```
|
|
387
387
|
|
|
388
|
-
You can also specify optional custom environment variables to test against real-world or locally running servers (instead of using mocked in-memory servers):
|
|
388
|
+
You can also specify optional custom environment variables to test against real-world or locally running servers (instead of using mocked in-memory servers) for the [HTTP Library Benchmarks](#http-library-benchmarks):
|
|
389
389
|
|
|
390
390
|
```sh
|
|
391
|
-
BENCHMARK_PROTOCOL="http" BENCHMARK_HOST="127.0.0.1" BENCHMARK_PORT="4000" BENCHMARK_PATH="/v1/test"
|
|
391
|
+
BENCHMARK_PROTOCOL="http" BENCHMARK_HOST="127.0.0.1" BENCHMARK_PORT="4000" BENCHMARK_PATH="/v1/test" node benchmarks/http
|
|
392
392
|
```
|
|
393
393
|
|
|
394
394
|
### Tangerine Benchmarks
|
|
@@ -400,7 +400,7 @@ The latest benchmark results are viewable on GitHub under this repository's [Git
|
|
|
400
400
|
> [Node 16 on ubuntu-latest](https://github.com/forwardemail/tangerine/actions/runs/4297805550/jobs/7491228635#step:6:1)
|
|
401
401
|
|
|
402
402
|
```diff
|
|
403
|
-
|
|
403
|
+
node benchmarks/lookup && node benchmarks/resolve && node benchmarks/reverse
|
|
404
404
|
|
|
405
405
|
Started: lookup
|
|
406
406
|
tangerine.lookup POST with caching using Cloudflare x 735 ops/sec ±195.35% (88 runs sampled)
|
|
@@ -437,7 +437,7 @@ dns.promises.reverse with caching x 5,123,900 ops/sec ±0.96% (85 runs sampled)
|
|
|
437
437
|
> [Node 18 on ubuntu latest](https://github.com/forwardemail/tangerine/actions/runs/4297805550/jobs/7491228742#step:6:1)
|
|
438
438
|
|
|
439
439
|
```diff
|
|
440
|
-
|
|
440
|
+
node benchmarks/lookup && node benchmarks/resolve && node benchmarks/reverse && node benchmarks/http
|
|
441
441
|
|
|
442
442
|
Started: lookup
|
|
443
443
|
tangerine.lookup POST with caching using Cloudflare x 666 ops/sec ±195.48% (87 runs sampled)
|
|
@@ -482,10 +482,10 @@ Provided below are additional benchmark tests we have run:
|
|
|
482
482
|
> Node v18.14.2 on MacBook Air M1 16GB (without VPN):
|
|
483
483
|
|
|
484
484
|
```diff
|
|
485
|
-
|
|
485
|
+
node --version
|
|
486
486
|
v18.14.2
|
|
487
487
|
|
|
488
|
-
|
|
488
|
+
node benchmarks/lookup && node benchmarks/resolve && node benchmarks/reverse
|
|
489
489
|
|
|
490
490
|
Started: lookup
|
|
491
491
|
tangerine.lookup POST with caching using Cloudflare x 1,035 ops/sec ±195.73% (91 runs sampled)
|
|
@@ -522,10 +522,10 @@ Fastest without caching is: dns.promises.reverse without caching, resolver.rever
|
|
|
522
522
|
> Node v18.14.2 on MacBook Air M1 16GB (with DNS blackholed VPN) – **this highlights the DNS blackhole problem**:
|
|
523
523
|
|
|
524
524
|
```diff
|
|
525
|
-
|
|
525
|
+
node --version
|
|
526
526
|
v18.14.2
|
|
527
527
|
|
|
528
|
-
|
|
528
|
+
node benchmarks/lookup && node benchmarks/resolve && node benchmarks/reverse
|
|
529
529
|
|
|
530
530
|
Started: lookup
|
|
531
531
|
tangerine.lookup POST with caching using Cloudflare x 1,327 ops/sec ±195.65% (89 runs sampled)
|
|
@@ -570,7 +570,7 @@ Originally we wrote this library using [got](https://github.com/sindresorhus/got
|
|
|
570
570
|
> Node v18.14.2 on MacBook Air M1 16GB (using real-world API server):
|
|
571
571
|
|
|
572
572
|
```sh
|
|
573
|
-
|
|
573
|
+
node --version
|
|
574
574
|
v18.14.2
|
|
575
575
|
|
|
576
576
|
> BENCHMARK_HOST="127.0.0.1" BENCHMARK_PORT="4000" BENCHMARK_PATH="/v1/test" node benchmarks/http
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tangerine",
|
|
3
3
|
"description": "Tangerine is the best Node.js drop-in replacement for dns.promises.Resolver using DNS over HTTPS (\"DoH\") via undici with built-in retries, timeouts, smart server rotation, AbortControllers, and caching support for multiple backends (with TTL support).",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"author": "Forward Email (https://forwardemail.net)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/forwardemail/tangerine/issues"
|