MCPcopy Create free account
hub / github.com/e2wugui/zeze / testToData

Method testToData

ZezeJava/ZezeJavaTest/src/Benchmark/TestToData.java:9–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7public class TestToData {
8
9 @Test
10 public void testToData() {
11 {
12 System.out.println("BValue PMap");
13 var bValue = new BValue();
14 for (long i = 0; i < 100; ++i) {
15 bValue.getMap15().put(i, i);
16 }
17 testCodec(bValue);
18 }
19 {
20 System.out.println("BValueData PMap");
21 var bValueData = new BValue.Data();
22 for (long i = 0; i < 100; ++i) {
23 bValueData.getMap15().put(i, i);
24 }
25 testCodec(bValueData);
26 }
27 {
28 System.out.println("BValue PList");
29 var bValue = new BValue();
30 for (long i = 0; i < 100; ++i) {
31 bValue.getArray29().add((float)i);
32 }
33 testCodec(bValue);
34 }
35 {
36 System.out.println("BValueData PList");
37 var bValueData = new BValue.Data();
38 for (long i = 0; i < 100; ++i) {
39 bValueData.getArray29().add((float)i);
40 }
41 testCodec(bValueData);
42 }
43 {
44 System.out.println("BValue PSet");
45 var bValue = new BValue();
46 for (int i = 0; i < 100; ++i) {
47 bValue.getSet10().add(i);
48 }
49 testCodec(bValue);
50 }
51 {
52 System.out.println("BValueData PSet");
53 var bValueData = new BValue.Data();
54 for (int i = 0; i < 100; ++i) {
55 bValueData.getSet10().add(i);
56 }
57 testCodec(bValueData);
58 }
59 }
60
61 public static void testCodec(BValue bValue) {
62 long sum = 0;

Callers

nothing calls this directly

Calls 3

testCodecMethod · 0.95
putMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected