Skip to content

Commit

Permalink
internal: Use node 20 for benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jan 20, 2024
1 parent 4921ff5 commit a67fbbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'yarn'
- name: Install packages
run: |
Expand Down
4 changes: 2 additions & 2 deletions examples/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"private": true,
"type": "module",
"engines": {
"node": ">=18"
"node": ">=20"
},
"scripts": {
"build": "BROWSERSLIST_ENV=node18 webpack --mode=production --target=node --env readable",
"build": "BROWSERSLIST_ENV=node20 webpack --mode=production --target=node --env readable",
"start": "NODE_ENV=production node --allow-natives-syntax ./index.js",
"start:trace": "yarn run start --trace_opt --trace_deopt",
"start:deopt": "NODE_ENV=production npx dexnode --out v8.log --redirect-code-traces-to=/tmp/codetrace --allow-natives-syntax ./index.js"
Expand Down

1 comment on commit a67fbbe

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: a67fbbe Previous: 7240cf7 Ratio
normalizeLong 446 ops/sec (±1.77%) 424 ops/sec (±2.32%) 0.95
infer All 9676 ops/sec (±1.81%) 8956 ops/sec (±2.03%) 0.93
denormalizeLong 322 ops/sec (±3.07%) 287 ops/sec (±2.10%) 0.89
denormalizeLong donotcache 864 ops/sec (±0.75%) 747 ops/sec (±0.48%) 0.86
denormalizeShort donotcache 500x 1359 ops/sec (±0.20%) 1315 ops/sec (±0.43%) 0.97
denormalizeShort 500x 948 ops/sec (±0.47%) 911 ops/sec (±0.50%) 0.96
denormalizeLong with mixin Entity 306 ops/sec (±0.31%) 274 ops/sec (±0.29%) 0.90
denormalizeLong withCache 7170 ops/sec (±0.14%) 6038 ops/sec (±0.26%) 0.84
denormalizeLongAndShort withEntityCacheOnly 1626 ops/sec (±0.42%) 1518 ops/sec (±0.49%) 0.93
denormalizeLong All withCache 6564 ops/sec (±0.40%) 7102 ops/sec (±0.29%) 1.08
denormalizeLong Query-sorted withCache 6563 ops/sec (±0.29%) 7095 ops/sec (±0.31%) 1.08
getResponse 4886 ops/sec (±0.56%) 5833 ops/sec (±1.47%) 1.19
getResponse (null) 3067670 ops/sec (±0.25%) 2895891 ops/sec (±0.44%) 0.94
getResponse (clear cache) 300 ops/sec (±0.38%) 266 ops/sec (±0.59%) 0.89
getSmallResponse 2253 ops/sec (±0.39%) 2144 ops/sec (±1.22%) 0.95
getSmallInferredResponse 1809 ops/sec (±0.45%) 1790 ops/sec (±0.53%) 0.99
getResponse Query-sorted 659 ops/sec (±1.54%) 675 ops/sec (±1.49%) 1.02
getResponse Collection 5005 ops/sec (±2.12%) 5012 ops/sec (±0.95%) 1.00
setLong 432 ops/sec (±2.23%) 424 ops/sec (±2.79%) 0.98
setLongWithMerge 184 ops/sec (±0.84%) 188 ops/sec (±0.39%) 1.02
setLongWithSimpleMerge 194 ops/sec (±2.01%) 202 ops/sec (±0.53%) 1.04

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

Please sign in to comment.