Avatar for the MystenLabs user
MystenLabs
walrus-sites
BlogDocsChangelog

feat(portal): mock system calls to reduce benchmark variance

#227Merged
Comparing
213-incorrect-performance-results-on-benchmarks-due-to-system-calls
(
0bf746f
) with
main
(
bcf47ce
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
3
New
4
Dropped
1
Ignored
5

Benchmarks

Failed

fetchResource: fetch the flatland walrus siteMissing
portal/common/lib/resource.bench.ts::Resource fetching::fetchResource: fetch the flatland walrus site
CodSpeed Performance Gauge
N/A
9.1 ms
N/A

New

fetchPage: should successfully fetch a mocked page site using redirect
portal/common/lib/page_fetching.bench.ts::Page fetching with mocked network calls::fetchPage: should successfully fetch a mocked page site using redirect
CodSpeed Performance Gauge
N/A
N/A
5.4 ms
fetchPage: should successfully fetch the mocked landing page site
portal/common/lib/page_fetching.bench.ts::Page fetching with mocked network calls::fetchPage: should successfully fetch the mocked landing page site
CodSpeed Performance Gauge
N/A
N/A
59.4 ms
fetchResource: fetch the flatlander site (with redirects)
portal/common/lib/resource.bench.ts::Resource fetching with mocked network calls::fetchResource: fetch the flatlander site (with redirects)
CodSpeed Performance Gauge
N/A
N/A
3.4 ms
fetchResource: fetch the landing page site (no redirects)
portal/common/lib/resource.bench.ts::Resource fetching with mocked network calls::fetchResource: fetch the landing page site (no redirects)
CodSpeed Performance Gauge
N/A
N/A
1.4 ms

Passed

decompress plaintext encoding
portal/common/lib/decompress_data.bench.ts::decompressData::decompress plaintext encoding
CodSpeed Performance Gauge
0%
15.9 µs
15.9 µs
decompress gzip encoding
portal/common/lib/decompress_data.bench.ts::decompressData::decompress gzip encoding
CodSpeed Performance Gauge
0%
253.7 µs
253.6 µs
decompress deflate encoding
portal/common/lib/decompress_data.bench.ts::decompressData::decompress deflate encoding
CodSpeed Performance Gauge
0%
248.6 µs
248.6 µs

Ignored

fetchPage: fetch the flatland walrus siteIgnored
portal/common/lib/page_fetching.bench.ts::Page fetching::fetchPage: fetch the flatland walrus site
CodSpeed Performance Gauge
N/A
23.9 ms
N/A
fetchPage: fetch the flatlander walrus siteIgnored
portal/common/lib/page_fetching.bench.ts::Page fetching::fetchPage: fetch the flatlander walrus site
CodSpeed Performance Gauge
N/A
12.2 ms
N/A
fetchPage: fetch the landing page walrus siteIgnored
portal/common/lib/page_fetching.bench.ts::Page fetching::fetchPage: fetch the landing page walrus site
CodSpeed Performance Gauge
N/A
13.3 ms
N/A
fetchResource: fetch the flatlander walrus siteIgnored
portal/common/lib/resource.bench.ts::Resource fetching::fetchResource: fetch the flatlander walrus site
CodSpeed Performance Gauge
N/A
19.8 ms
N/A
fetchResource: fetch the landing page walrus siteIgnored
portal/common/lib/resource.bench.ts::Resource fetching::fetchResource: fetch the landing page walrus site
CodSpeed Performance Gauge
N/A
9.7 ms
N/A

Commits

Click on a commit to change the comparison range
Base
main
bcf47ce
-44%
feat: refactor headers to use map and simplify mock implementations
a8f02d2
4 months ago
-3%
refactor: remove unused constants
b928ee3
4 months ago
by chariskms
+47%
Add comments and fix Resource.headers in mocks
0bf746f
4 months ago
by Tzal3x
Home Terms PrivacyDocs