-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated test and benchmark dependencies and fixed issue with unresolv…
- Loading branch information
1 parent
efffc53
commit ebee31f
Showing
7 changed files
with
86 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { parseFeed } from "./mod.ts"; | ||
|
||
Deno.bench('Parse RSS1', async (b) => { | ||
let source = await Deno.readTextFile(`./samples/rss1.xml`); | ||
b.start(); | ||
await parseFeed(source); | ||
b.end(); | ||
source = ''; | ||
}); | ||
|
||
Deno.bench('Parse RSS2', async (b) => { | ||
let source = await Deno.readTextFile(`./samples/rss2.xml`); | ||
b.start(); | ||
await parseFeed(source); | ||
b.end(); | ||
source = ''; | ||
}); | ||
|
||
Deno.bench('Parse ATOM', async (b) => { | ||
let source = await Deno.readTextFile(`./samples/atom.xml`); | ||
b.start(); | ||
await parseFeed(source); | ||
b.end(); | ||
source = ''; | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,5 @@ export { | |
assert, | ||
assertEquals, | ||
assertNotEquals, | ||
assertThrowsAsync, | ||
} from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
export { | ||
bench, | ||
runBenchmarks, | ||
} from "https://deno.land/[email protected]/testing/bench.ts"; | ||
assertRejects | ||
} from "https://deno.land/[email protected]/assert/mod.ts"; |