Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(observability): spin up micro-benchmarking
This requires you to add to your environment SPANNER_RUN_BENCHMARKS=true and then it can be run by npm run observability-test whose results look like: ```shell Benchmarking Total Runs: 10000 databaseRunSelect1AsyncAwait RAM Untraced(206.453kB) vs Traced (240.953kB): increase by (34.500kB) or 16.71% RAM Untraced(206.453kB) vs Traced+OTEL(243.391kB): increase by (36.938kB) or 17.89% Time Untraced(911.057µs) vs Traced (1.014ms): increase by (102.749µs) or 11.28% Time Untraced(911.057µs) vs Traced+OTEL(1.017ms): increase by (106.116µs) or 11.65% databaseRunSelect1Callback RAM Untraced(210.219kB) vs Traced (238.797kB): increase by (28.578kB) or 13.59% RAM Untraced(210.219kB) vs Traced+OTEL(242.914kB): increase by (32.695kB) or 15.55% Time Untraced(890.877µs) vs Traced (997.541µs): increase by (106.664µs) or 11.97% Time Untraced(890.877µs) vs Traced+OTEL(1.019ms): increase by (127.997µs) or 14.37% databaseRunTransactionAsyncTxRunUpdate RAM Untraced(308.898kB) vs Traced (325.313kB): increase by (16.414kB) or 5.31% RAM Untraced(308.898kB) vs Traced+OTEL(339.836kB): increase by (30.938kB) or 10.02% Time Untraced(1.510ms) vs Traced (1.652ms): increase by (141.330µs) or 9.36% Time Untraced(1.510ms) vs Traced+OTEL(1.668ms): increase by (157.466µs) or 10.43% databaseRunTransactionAsyncTxRun RAM Untraced(298.977kB) vs Traced (326.227kB): increase by (27.250kB) or 9.11% RAM Untraced(298.977kB) vs Traced+OTEL(315.164kB): increase by (16.188kB) or 5.41% Time Untraced(1.450ms) vs Traced (1.581ms): increase by (130.870µs) or 9.03% Time Untraced(1.450ms) vs Traced+OTEL(1.615ms): increase by (165.426µs) or 11.41% ```
- Loading branch information