Skip to content

Commit dac5b6a

Browse files
committed
Website: generate HTML chart+table with EJS
The generate-benchmark-html Python script creates an .html file based on a .template.html file. The generated .html file is checked into the repository, meaning that it needs to be manually synchronized with the source .json benchmark data. Rewrite the generate-benchmark-html Python script in JavaScript and use the generation code from an EJS template. The website build process (`yarn build`) will generate an index.html file from the .json benchmark data and the index.ejs.html template. The generated code for /benchmarks/index.html should be functionally unchanged by this commit.
1 parent c25efb0 commit dac5b6a

File tree

6 files changed

+223
-641
lines changed

6 files changed

+223
-641
lines changed

benchmark/benchmark-lsp/generate-benchmark-html

Lines changed: 0 additions & 218 deletions
This file was deleted.

website/public/benchmarks/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,3 @@ This directory contains benchmark results for display on the website.
77
$ # Run the benchmarks:
88
$ cd benchmark/benchmark-lsp/
99
$ stack run -- -m glob "*/open-wait-close/express-router.js" --json ../../website/benchmarks/open-wait-close-express-router-js.json --time-limit 20
10-
$ cd ../../
11-
12-
$ # Generate index.html:
13-
$ python3 ./benchmark/benchmark-lsp/generate-benchmark-html website/benchmarks/index.template.html website/benchmarks/index.html
14-
15-
$ # Reformat HTML code:
16-
$ cd website/
17-
$ yarn fmt

0 commit comments

Comments
 (0)