Skip to content

Commit

Permalink
feat: show benchmark on readme
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Sep 27, 2024
1 parent 08ece21 commit 7b6b5fb
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/main/java/bee/task/CI.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,25 +154,23 @@ public void readme() {
</p>
{#description}
## Summary
{description}
{.}
<p align="right"><a href="#top">back to top</a></p>
{/description}
{#snippets}
## Usage
{snippets}
{.}
<p align="right"><a href="#top">back to top</a></p>
{/snippets}
## Prerequisites
{ProductName} runs on all major operating systems and requires only [Java version {java}](https://docs.oracle.com/en/java/javase/{java}/) or later to run.
To check, please run `java -version` from the command line interface. You should see something like this:
```
> java -version
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+36-2231)
OpenJDK 64-Bit Server VM (build 16+36-2231, mixed mode, sharing)
```
To check, please run `java -version` on your terminal.
<p align="right"><a href="#top">back to top</a></p>
## Install
Expand Down Expand Up @@ -233,6 +231,7 @@ OpenJDK Runtime Environment (build 16+36-2231)
```
<p align="right"><a href="#top">back to top</a></p>
{benchmark}
## Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
Expand Down Expand Up @@ -301,6 +300,10 @@ OpenJDK Runtime Environment (build 16+36-2231)
.map(sn -> sn.comment + "\n```java\n" + sn.code + "\n```\n")
.collect(Collectors.joining(Platform.EOL));

case "benchmark":
File benchmark = project.getRoot().file("benchmark/README.md");
return benchmark.isAbsent() ? "" : benchmark.text();

default:
return null;
}
Expand Down

0 comments on commit 7b6b5fb

Please sign in to comment.