Skip to content

Commit 0f968b9

Browse files
committed
delete jmh and clean up build.
1 parent f53f50a commit 0f968b9

File tree

60 files changed

+80
-61014
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+80
-61014
lines changed

.github/workflows/gradle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
run: |
4141
printf "\norg.gradle.java.installations.paths=%s" "$JAVA_HOME" >> gradle.properties
4242
java --version
43-
./gradlew --stacktrace --no-daemon -PtargetJava=${{ vars.JAVA_VERSION }} check
43+
./gradlew --stacktrace --no-daemon -PjavaVersion=${{ vars.JAVA_VERSION }} check

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ jobs:
4040
run: |
4141
printf "\norg.gradle.java.installations.paths=%s" "$JAVA_HOME" >> gradle.properties
4242
java --version
43-
./gradlew --stacktrace -PtargetJava=${{ vars.JAVA_VERSION }} check :json-iterator:publish
43+
./gradlew --stacktrace --no-daemon -PjavaVersion=${{ vars.JAVA_VERSION }} -Pversion=${{ github.ref_name }} check :json-iterator:publish
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

-22
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,3 @@ If the presence and ordering of the JSON object fields are guaranteed to always
2222
Otherwise, follow the [`IocLoopCompareStringFieldToCharsIf`](systems.comodal.json_iterator/src/jmh/java/systems/comodal/jsoniter/jmh/styles/IocLoopCompareStringFieldToCharsIf.java#L22) style, which enables inversion of control while it iterates over object fields in conjunction with comparing expected field strings against a field character array. The advantage of this strategy is that it avoids constructing Strings for object fields.
2323

2424
If the first character for all of an objects' fields are unique, follow either the [`IocLoopCharIf`](systems.comodal.json_iterator/src/jmh/java/systems/comodal/jsoniter/jmh/styles/IocLoopCharIf.java#L20) or [`IocLoopCharSwitch`](systems.comodal.json_iterator/src/jmh/java/systems/comodal/jsoniter/jmh/styles/IocLoopCharSwitch.java#L20) style. Similar to the style `IocLoopCompareStringFieldToCharsIf`, these styles avoid constructing Strings for object fields.
25-
26-
## Style Comparison Benchmarks
27-
28-
### String Fields
29-
30-
```sh
31-
> ./gradlew jmh -Pbench=BenchStringFieldStyles
32-
```
33-
34-
Each iteration parses a large json object ([exchangeInfo.json](systems.comodal.json_iterator/src/jmh/resources/exchangeInfo.json)). The results can also be viewed on [JMH Visualizer](http://jmh.morethan.io/?source=https://raw.githubusercontent.com/comodal/json-iterator/master/benchmark-results/BenchStringFieldStyles/results.json).
35-
36-
![String Fields Style Comparision](benchmark-results/BenchStringFieldStyles/results.png)
37-
38-
### Char Fields
39-
40-
```sh
41-
> ./gradlew jmh -Pbench=BenchCharFieldStyles
42-
```
43-
44-
Each iteration parses a large json object ([compactFieldsExchangeInfo.json](systems.comodal.json_iterator/src/jmh/resources/compactFieldsExchangeInfo.json)). The results can also be viewed on [JMH Visualizer](http://jmh.morethan.io/?source=https://raw.githubusercontent.com/comodal/json-iterator/master/benchmark-results/BenchCharFieldStyles/results.json).
45-
46-
![Char Fields Style Comparision](benchmark-results/BenchCharFieldStyles/results.png)

benchmark-results/BenchCharFieldStyles/results.json

-352
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)