mirror of
https://github.com/danbulant/markdown-wasm
synced 2026-07-03 10:10:48 +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() {
|
.add('markdown-it', function() {
|
||||||
markdownit.render(contents);
|
markdownit.render(contents);
|
||||||
})
|
})
|
||||||
.add('markdown-wasm/string', function() {
|
.add('markdown-wasm', function() {
|
||||||
markdown_wasm.parse(contents);
|
|
||||||
})
|
|
||||||
.add('markdown-wasm/bytes', function() {
|
|
||||||
markdown_wasm.parse(contentsBuffer, {asMemoryView:true});
|
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();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -104,12 +104,6 @@ function loadData(csvfile) {
|
||||||
const fileset = new Set()
|
const fileset = new Set()
|
||||||
|
|
||||||
d3.csvParse(csvText, d => {
|
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] = {})
|
let lib = libraries[d.library] || (libraries[d.library] = {})
|
||||||
const ops_sec = parseFloat(d["ops/sec"])
|
const ops_sec = parseFloat(d["ops/sec"])
|
||||||
const filesize = parseInt(d["filesize"])
|
const filesize = parseInt(d["filesize"])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue