We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca9da77 commit 3e67ef0Copy full SHA for 3e67ef0
benches/index.ts
@@ -7,12 +7,11 @@ import url from 'node:url';
7
import si from 'systeminformation';
8
import { fsWalk, resultsPath, suitesPath } from './utils.js';
9
10
-// Adding for more context
11
-Error.stackTraceLimit = 100;
12
-
13
const dirname = url.fileURLToPath(new URL('.', import.meta.url));
+console.log('dirname', dirname);
14
15
async function main(): Promise<void> {
+ console.log('mkdir', path.join(dirname, 'results'));
16
await fs.promises.mkdir(path.join(dirname, 'results'), { recursive: true });
17
// Running all suites
18
for await (const suitePath of fsWalk(suitesPath)) {
@@ -49,6 +48,7 @@ async function main(): Promise<void> {
49
48
osInfo: 'platform, distro, release, kernel, arch',
50
system: 'model, manufacturer',
51
});
+ console.log('write file', path.join(dirname, 'results', 'system.json'))
52
await fs.promises.writeFile(
53
path.join(dirname, 'results', 'system.json'),
54
JSON.stringify(systemData, null, 2),
scripts/brew-install.sh
@@ -21,4 +21,5 @@ brew link --overwrite rustup-init
21
# However rustup provides specific versions
22
# Here we provide both toolchains
23
rustup-init --default-toolchain 1.68.2 -y
24
-rustup add x86_64-apple-darwin aarch64-apple-darwin
+rustup add x86_64-apple-darwin
25
+rustup add aarch64-apple-darwin
src/native/quiche.ts
@@ -66,11 +66,13 @@ function requireBinding(targets: Array<string>): Quiche {
66
);
67
for (const prebuildTarget of prebuildTargets) {
68
try {
69
+ console.log('trying path', prebuildTarget);
70
return require(prebuildTarget);
71
} catch (e) {
72
if (e.code !== 'MODULE_NOT_FOUND') throw e;
73
}
74
75
+ console.log('trying path', url.pathToFileURL(prebuildTarget).href);
76
return require(url.pathToFileURL(prebuildTarget).href);
77
78
@@ -79,11 +81,13 @@ function requireBinding(targets: Array<string>): Quiche {
79
81
const npmTargets = targets.map((target) => `@matrixai/quic-${target}`);
80
82
for (const npmTarget of npmTargets) {
83
84
+ console.log('trying path', npmTarget);
85
return require(npmTarget);
86
87
88
89
90
+ console.log('trying path', url.pathToFileURL(npmTarget).href);
91
return require(url.pathToFileURL(npmTarget).href);
92
93
@@ -161,6 +165,8 @@ switch (process.platform) {
161
165
162
166
163
167
168
169
+
164
170
export default nativeBinding;
171
172
export type { Quiche };
0 commit comments