All Projects → sbstjn → latenz

sbstjn / latenz

Licence: MIT license
JavaScript HTTP latency analyzer

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to latenz

rtiperftest
RTI Perftest is a command-line application that measures the Latency and Throughput of very configurable scenarios that use RTI Connext DDS middleware to send messages.
Stars: ✭ 38 (+111.11%)
Mutual labels:  latency, measure
benchmark-http
No description or website provided.
Stars: ✭ 15 (-16.67%)
Mutual labels:  benchmark, latency
c2clat
A tool to measure CPU core to core latency
Stars: ✭ 37 (+105.56%)
Mutual labels:  benchmark, latency
cult
CPU Ultimate Latency Test.
Stars: ✭ 67 (+272.22%)
Mutual labels:  benchmark, latency
stringbench
String matching algorithm benchmark
Stars: ✭ 31 (+72.22%)
Mutual labels:  benchmark
CellBench
R package for benchmarking single cell analysis methods
Stars: ✭ 21 (+16.67%)
Mutual labels:  benchmark
yjit-bench
Set of benchmarks for the YJIT CRuby JIT compiler
Stars: ✭ 38 (+111.11%)
Mutual labels:  benchmark
HeCBench
software.intel.com/content/www/us/en/develop/articles/repo-evaluating-performance-productivity-oneapi.html
Stars: ✭ 85 (+372.22%)
Mutual labels:  benchmark
text-style-transfer-benchmark
Text style transfer benchmark
Stars: ✭ 56 (+211.11%)
Mutual labels:  benchmark
similarity measures
Quantify the difference between two arbitrary curves in space
Stars: ✭ 140 (+677.78%)
Mutual labels:  measure
Visual-Tracking-Development
Recent Trackers
Stars: ✭ 93 (+416.67%)
Mutual labels:  benchmark
SimpleTypes
The universal PHP library to convert any values and measures (money, weight, currency converter, length, etc.).
Stars: ✭ 56 (+211.11%)
Mutual labels:  measure
go-perftuner
Helper tool for manual Go code optimization.
Stars: ✭ 111 (+516.67%)
Mutual labels:  benchmark
gtestx
A C++ benchmark extension for gtest
Stars: ✭ 19 (+5.56%)
Mutual labels:  benchmark
SciMLBenchmarks.jl
Benchmarks for scientific machine learning (SciML) software and differential equation solvers
Stars: ✭ 195 (+983.33%)
Mutual labels:  benchmark
Hetero-Mark
A Benchmark Suite for Heterogeneous System Computation
Stars: ✭ 41 (+127.78%)
Mutual labels:  benchmark
hashcatbenchmark
Benchmark in Hashcat for diferents GPU's
Stars: ✭ 19 (+5.56%)
Mutual labels:  benchmark
godot-size-benchmarks
Benchmarks to compare Godot binary sizes with different build-time options
Stars: ✭ 36 (+100%)
Mutual labels:  benchmark
user-agent-parser-benchmarks
PHP User Agent Parser Benchmarks
Stars: ✭ 29 (+61.11%)
Mutual labels:  benchmark
CARLA
CARLA: A Python Library to Benchmark Algorithmic Recourse and Counterfactual Explanation Algorithms
Stars: ✭ 166 (+822.22%)
Mutual labels:  benchmark

latenz

Travis Commitizen friendly npm npm

A JavaScript latency analyzer like updown.io or ping.apex.sh. Get information about DNS lookup, connection time to your HTTP(S) server and how long it takes to receive the response.

$ > npm install latenz -g
$ > latenz sbstjn.com

             host: sbstjn.com

      Name Lookup: 10ms     
       Connection: 3ms        (13ms)
         Response: 63ms       (76ms)
         Received: 5ms        (81ms)

            total: 81ms

latenz

If you plan to use the result for further scripting, you might be a friend of the raw mode, which can be enabled by using --raw parameter:

$ > latenz sbstjn.com --raw
985 lookup:443 socket:3 response:534 end:5

For using HTTPS instead of HTTP (default), just pass the --secure parameter to latenz:

$ > latenz sbstjn.com --raw --secure
985 lookup:443 socket:3 response:534 end:5

JavaScript Usage

If you need the result as a JSON inside JavaScript:

const Latenz = require('latenz');
const l = new Latenz();

l.measure('sbstjn.com').then(result => {
  console.log(result);

  /*
    [
      { key: 'resolve', time: 139 },
      { key: 'socket', time: 2 },
      { key: 'response', time: 286 },
      { key: 'firstdata', time: 1 },
      { key: 'end', time: 2 }
    ]
  */
}).catch((e) => {
  throw e;
});

You can pass an options object to measure in order to enable a secure connection, change the used port or set the result mode:

l.measure('sbstjn.com',
  {
    secure: true,
    port: 8443,
    mode: 'pretty'
  }
);

ToDo

  • Error handling
  • Support redirects
  • Check numbers
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].