Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions napi/parser/bench.bench.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { parseSync } from './index.js';

// Same fixtures as used in Rust parser benchmarks
let fixtureUrls = [
'https://raw.githubusercontent.com/microsoft/TypeScript/v5.3.3/src/compiler/checker.ts',
'https://raw.githubusercontent.com/oxc-project/benchmark-files/main/cal.com.tsx',
'https://raw.githubusercontent.com/oxc-project/benchmark-files/main/RadixUIAdoptionSection.jsx',
'https://cdn.jsdelivr.net/gh/microsoft/TypeScript@v5.3.3/src/compiler/checker.ts',
'https://cdn.jsdelivr.net/gh/oxc-project/benchmark-files@main/cal.com.tsx',
'https://cdn.jsdelivr.net/gh/oxc-project/benchmark-files@main/RadixUIAdoptionSection.jsx',
'https://cdn.jsdelivr.net/npm/pdfjs-dist@4.0.269/build/pdf.mjs',
'https://cdn.jsdelivr.net/npm/antd@5.12.5/dist/antd.js',
];
Expand Down
6 changes: 3 additions & 3 deletions napi/parser/test/parse-raw.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ const INFINITY_REGEXP = new RegExp(`"${INFINITY_PLACEHOLDER}"`, 'g');
// TODO: Enable them again once that work is complete.
const benchFixtureUrls = [
// TypeScript syntax (2.81MB)
// 'https://raw.githubusercontent.com/microsoft/TypeScript/v5.3.3/src/compiler/checker.ts',
// 'https://cdn.jsdelivr.net/gh/microsoft/TypeScript@v5.3.3/src/compiler/checker.ts',
// Real world app tsx (1.0M)
// 'https://raw.githubusercontent.com/oxc-project/benchmark-files/main/cal.com.tsx',
// 'https://cdn.jsdelivr.net/gh/oxc-project/benchmark-files@main/cal.com.tsx',
// Real world content-heavy app jsx (3K)
'https://raw.githubusercontent.com/oxc-project/benchmark-files/main/RadixUIAdoptionSection.jsx',
'https://cdn.jsdelivr.net/gh/oxc-project/benchmark-files@main/RadixUIAdoptionSection.jsx',
// Heavy with classes (554K)
'https://cdn.jsdelivr.net/npm/pdfjs-dist@4.0.269/build/pdf.mjs',
// ES5 (3.9M)
Expand Down
5 changes: 2 additions & 3 deletions tasks/benchmark/benches/isolated_declarations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ use oxc_tasks_common::TestFile;
fn bench_isolated_declarations(criterion: &mut Criterion) {
let mut group = criterion.benchmark_group("isolated-declarations");

let file = TestFile::new(
"https://raw.githubusercontent.com/oxc-project/benchmark-files/main/vue-id.ts",
);
let file =
TestFile::new("https://cdn.jsdelivr.net/gh/oxc-project/benchmark-files@main/vue-id.ts");

let id = BenchmarkId::from_parameter(&file.file_name);
let source_text = file.source_text.as_str();
Expand Down
6 changes: 3 additions & 3 deletions tasks/common/src/test_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ impl TestFiles {
fn complicated_urls() -> [&'static str; 5] {
[
// TypeScript syntax (2.81MB)
"https://raw.githubusercontent.com/microsoft/TypeScript/v5.3.3/src/compiler/checker.ts",
"https://cdn.jsdelivr.net/gh/microsoft/TypeScript@v5.3.3/src/compiler/checker.ts",
// Real world app tsx (1.0M)
"https://raw.githubusercontent.com/oxc-project/benchmark-files/main/cal.com.tsx",
"https://cdn.jsdelivr.net/gh/oxc-project/benchmark-files@main/cal.com.tsx",
// Real world content-heavy app jsx (3K)
"https://raw.githubusercontent.com/oxc-project/benchmark-files/main/RadixUIAdoptionSection.jsx",
"https://cdn.jsdelivr.net/gh/oxc-project/benchmark-files@main/RadixUIAdoptionSection.jsx",
// Heavy with classes (554K)
"https://cdn.jsdelivr.net/npm/pdfjs-dist@4.0.269/build/pdf.mjs",
// ES5 (3.9M)
Expand Down
Loading