Skip to content

Commit

Permalink
remove unused code & refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jun 17, 2023
1 parent ea3bc5d commit 102ebf8
Show file tree
Hide file tree
Showing 92 changed files with 2,672 additions and 2,089 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public static void jsonb() throws Exception {
}
long millis = System.currentTimeMillis() - start;
System.out.println("EishayFuryParse-fastjson2_jsonb millis : " + millis);
// zulu8.68.0.21_AppleM1Max : 3824 3849 3678
// zulu8.68.0.21_AppleM1Max : 3824 3849 3678 3441
// zulu11.62.17_AppleM1Max : 3023 3196 3174 2888
// zulu17.40.19_AppleM1Max : 3109 3074 3140 2875
// zulu17.40.19_AppleM1Max : 3109 3074 3140 2875 3004 2985
// oracle-jdk-17.0.6 3052

// jdk1.8.0_361_x86_i9 7343
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static com.alibaba.fastjson2.benchmark.JMH.BH;

public class EishayParseStringTest {
static final int LOOP = 1_000_000;
static final int LOOP = 10_000_000;
static final EishayParseString benchmark = new EishayParseString();

public static void fastjson2() {
Expand All @@ -14,9 +14,9 @@ public static void fastjson2() {
}
long millis = System.currentTimeMillis() - start;
System.out.println("fastjson2 millis : " + millis);
// zulu8.70.0.23 : 5569
// zulu11.64.19 : 5022
// zulu17.42.19 : 5377 5193
// zulu8.70.0.23 : 5569 5630
// zulu11.64.19 : 5022 5033
// zulu17.42.19 : 5377 5193 5222 5154 5116 5083 4987
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public static void fastjson2() {
}
long millis = System.currentTimeMillis() - start;
System.out.println("fastjson2 millis : " + millis);
// zulu8.62.0.19 : 703 746 710 706 700 682
// zulu11.52.13 : 579 565 552 541 554 553 554
// zulu17.40.19 : 600 604 597 593
// zulu8.62.0.19 : 703 746 710 706 700 682 717 698
// zulu11.52.13 : 579 565 552 541 554 553 554 538
// zulu17.40.19 : 600 604 597 593 578 567
// oracle-jdk-17.0.6 : 593
// oracle-jdk-17.0.6_vec : 593
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void fastjson2() {
}
long millis = System.currentTimeMillis() - start;
System.out.println("fastjson2 millis : " + millis);
// zulu17.40.19 : 2850 2815 2777 2770 2730 2704 2717 2661 2638 2603 2587 2662
// zulu17.40.19 : 2850 2815 2777 2770 2730 2704 2717 2661 2638 2603 2587 2662 2582
// oracle-jdk-17.0.6 :
// oracle-jdk-17.0.6_vec :
// oracle-jdk-17.0.6_reflect : 3566 3513 3476
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void fastjson2() {
}
long millis = System.currentTimeMillis() - start;
System.out.println("fastjson2 millis : " + millis);
// zulu17.40.19 : 2198
// zulu17.40.19 : 2198 2189
// oracle-jdk-17.0.6 :
// oracle-jdk-17.0.6_vec :
}
Expand Down
819 changes: 445 additions & 374 deletions core/src/main/java/com/alibaba/fastjson2/JSON.java

Large diffs are not rendered by default.

Loading

0 comments on commit 102ebf8

Please sign in to comment.