From 3ff2d3aa4e3f95874d228cc1eb984c39058444f9 Mon Sep 17 00:00:00 2001 From: Nathaniel Tucker Date: Mon, 18 Dec 2023 15:06:41 +0000 Subject: [PATCH] docs: Update benchmark results table --- examples/benchmark/README.md | 15 +++++++-------- examples/benchmark/package.json | 1 - examples/benchmark/schemas.js | 2 -- yarn.lock | 1 - 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/examples/benchmark/README.md b/examples/benchmark/README.md index 044fed5a078f..e33477d67ddb 100644 --- a/examples/benchmark/README.md +++ b/examples/benchmark/README.md @@ -1,4 +1,4 @@ -[Progress over time](https://data-client.github.io/data-client/dev/bench/) +[Progress over time](https://reactive.github.io/data-client/dev/bench/) ### Usage @@ -22,12 +22,11 @@ No argument will run `normalizr` + `core` Performance compared to normalizr package (higher is better): | | no cache | with cache | -|---------------------|----------|------------| -| normalize (long) | 72% | 72% | -| denormalize (long) | 100% | 830% | -| denormalize (short) | 600% | 1120% | +| ------------------- | -------- | ---------- | +| normalize (long) | 80% | 80% | +| denormalize (long) | 119% | 838% | +| denormalize (short) | 544% | 2,026% | -[Comparison done on a Ryzen 7950x; Ubuntu; Node 18.15.0] +[Comparison done on a Ryzen 7950x; Ubuntu; Node 20.10.0] -Our normalize is slower due to handling much more features like metadata. Denormalize -is even more feature rich, but significantly faster. \ No newline at end of file +Not only is denormalize faster, but it is more feature-rich as well. diff --git a/examples/benchmark/package.json b/examples/benchmark/package.json index f7286d537d04..bd94eaae3335 100644 --- a/examples/benchmark/package.json +++ b/examples/benchmark/package.json @@ -20,7 +20,6 @@ "@data-client/core": "workspace:^", "@data-client/endpoint": "workspace:^", "@data-client/normalizr": "workspace:^", - "@js-temporal/polyfill": "^0.4.4", "benchmark": "^2.1.4", "normalizr": "^3.6.2", "react": "^18.2.0" diff --git a/examples/benchmark/schemas.js b/examples/benchmark/schemas.js index b8eaffdf3110..0e64fc8b1349 100644 --- a/examples/benchmark/schemas.js +++ b/examples/benchmark/schemas.js @@ -1,5 +1,3 @@ -import { Temporal } from '@js-temporal/polyfill'; - import { Entity, schema, Query } from './dist/index.js'; export class BuildTypeDescription extends Entity { diff --git a/yarn.lock b/yarn.lock index 9303cbf6d841..e348feb1678d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13622,7 +13622,6 @@ __metadata: "@data-client/core": "workspace:^" "@data-client/endpoint": "workspace:^" "@data-client/normalizr": "workspace:^" - "@js-temporal/polyfill": "npm:^0.4.4" "@types/babel__core": "npm:^7" "@types/benchmark": "npm:2.1.5" "@types/react": "npm:18.2.45"