Add/update filtered-sum-bms benchmark

This commit is contained in:
jonas-peeters committed 2026-06-06 18:00:20 +00:00
1 parent 2944683db9
commit 260d5fa4a5
8045 files changed
+2651026 -270206

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import { parseQueryString } from "@smithy/querystring-parser";
export const parseUrl = (url) => {
if (typeof url === "string") {
return parseUrl(new URL(url));
}
const { hostname, pathname, port, protocol, search } = url;
let query;
if (search) {
query = parseQueryString(search);
}
return {
hostname,
port: port ? parseInt(port) : undefined,
protocol,
path: pathname,
query,
};
};