mirror of
https://github.com/danbulant/markdown-wasm
synced 2026-06-15 20:51:04 +00:00
benchmark: remove unused markdown-wasm/string
This commit is contained in:
parent
7a758f16d6
commit
900f463121
2 changed files with 7 additions and 10 deletions
|
|
@ -79,11 +79,14 @@ function benchmarkFile(benchfile) {
|
|||
.add('markdown-it', function() {
|
||||
markdownit.render(contents);
|
||||
})
|
||||
.add('markdown-wasm/string', function() {
|
||||
markdown_wasm.parse(contents);
|
||||
})
|
||||
.add('markdown-wasm/bytes', function() {
|
||||
.add('markdown-wasm', function() {
|
||||
markdown_wasm.parse(contentsBuffer, {asMemoryView:true});
|
||||
})
|
||||
// .add('markdown-wasm/string', function() {
|
||||
// markdown_wasm.parse(contents);
|
||||
// })
|
||||
// .add('markdown-wasm/bytes', function() {
|
||||
// markdown_wasm.parse(contentsBuffer, {asMemoryView:true});
|
||||
// })
|
||||
.run();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,12 +104,6 @@ function loadData(csvfile) {
|
|||
const fileset = new Set()
|
||||
|
||||
d3.csvParse(csvText, d => {
|
||||
if (d.library == "markdown-wasm/string") {
|
||||
return
|
||||
}
|
||||
if (d.library == "markdown-wasm/bytes") {
|
||||
d.library = "markdown-wasm"
|
||||
}
|
||||
let lib = libraries[d.library] || (libraries[d.library] = {})
|
||||
const ops_sec = parseFloat(d["ops/sec"])
|
||||
const filesize = parseInt(d["filesize"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue