Skip to content

Commit

Permalink
feat: updates node.js
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Node.js 12 is deprecated
  • Loading branch information
simonecorsi committed May 12, 2022
1 parent 567a066 commit 4a774d2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: lts/*

- run: npm install

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x, 18.x]

runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-dry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x, 18.x]

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_OWNER_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ There are times when you have to gather metrics and you want something simple wi

This client aims to have a simple [statsd](https://github.com/statsd/statsd) compliant API with some optional flavour for advanced usage, like: buffered metrics and either UDP/TCP transports!

Supports Node.js `>=14.0.0`, if you are a Node.js `v12` user refer to `dats@2.x.x`.

## Table of Content

<!-- toc -->
Expand Down

1 comment on commit 4a774d2

@simonecorsi
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmarks

Benchmark suite Current: 4a774d2 Previous: 567a066 Ratio
dats counter udp base 90110 ops/sec (±1.49%) 117412 ops/sec (±1.09%) 1.30
dats counter udp buffered 840451 ops/sec (±3.03%) 1150750 ops/sec (±1.06%) 1.37
dats gauge udp buffered 817544 ops/sec (±1.52%) 1145302 ops/sec (±0.93%) 1.40
dats set udp buffered 821190 ops/sec (±1.54%) 1148815 ops/sec (±0.74%) 1.40
dats timing udp buffered 792263 ops/sec (±1.78%) 1103330 ops/sec (±1.33%) 1.39
dats counter tcp buffered 1775632 ops/sec (±5.34%) 1902614 ops/sec (±4.01%) 1.07

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.