fork/rust_serialization_benchmark

git clone https://git.julia.blue/fork/rust_serialization_benchmark

Cai BearNew benchmark based on mk48.io (#45)783c4dc

master
1.1 KiB66 linesraw
1@0xc3182888fa8baeb0;
2
3enum EntityType {
4    arleighBurke @0;
5    bismarck @1;
6    clemenceau @2;
7    fletcher @3;
8    g5 @4;
9    iowa @5;
10    kolkata @6;
11    osa @7;
12    yasen @8;
13    zubr @9;
14}
15
16struct Transform {
17    altitude @0 :Int8;
18    angle @1 :UInt16;
19    position :group {
20        x @2 :Float32;
21        y @3 :Float32;
22    }
23    velocity @4 :Int16;
24}
25
26struct Guidance {
27    angle @0 :UInt16;
28    submerge @1 :Bool;
29    velocity @2 :Int16;
30}
31
32struct Contact {
33    damage @0 :UInt8;
34    entityId @1 :UInt32;
35    entityType :union {
36        none @2 :Void;
37        some @3 :EntityType;
38    }
39    guidance @4 :Guidance;
40    playerId :union {
41        none @5 :Void;
42        some @6 :UInt16;
43    }
44    reloads @7 :List(Bool);
45    transform @8 :Transform;
46    turretAngles @9 :List(UInt16);
47}
48
49struct TerrainUpdate {
50    chunkId :group {
51        x @0 :Int8;
52        y @1 :Int8;
53    }
54    data @2 :List(UInt8);
55}
56
57struct Update {
58    contacts @0 :List(Contact);
59    score @1 :UInt32;
60    worldRadius @2 :Float32;
61    terrainUpdates @3 :List(TerrainUpdate);
62}
63
64struct Updates {
65    updates @0 :List(Update);
66}