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
1syntax = "proto3";
2
3package prost.mk48;
4
5enum EntityType {
6    ARLEIGH_BURKE = 0;
7    BISMARCK = 1;
8    CLEMENCEAU = 2;
9    FLETCHER = 3;
10    G5 = 4;
11    IOWA = 5;
12    KOLKATA = 6;
13    OSA = 7;
14    YASEN = 8;
15    ZUBR = 9;
16}
17
18message Vector2f {
19    float x = 1;
20    float y = 2;
21}
22
23message Transform {
24    int32 altitude = 1;
25    uint32 angle = 2;
26    Vector2f position = 3;
27    int32 velocity = 4;
28}
29
30message Guidance {
31    uint32 angle = 1;
32    bool submerge = 2;
33    int32 velocity = 3;
34}
35
36message Contact {
37    uint32 damage = 1;
38    uint32 entity_id = 2;
39    optional EntityType entity_type = 3;
40    Guidance guidance = 4;
41    optional uint32 player_id = 5;
42    repeated bool reloads = 6;
43    Transform transform = 7;
44    repeated uint32 turret_angles = 8;
45}
46
47message ChunkId {
48    int32 x = 1;
49    int32 y = 2;
50}
51
52message TerrainUpdate {
53    ChunkId chunk_id = 1;
54    bytes data = 2;
55}
56
57message Update {
58    repeated Contact contacts = 1;
59    uint32 score = 2;
60    float world_radius = 3;
61    repeated TerrainUpdate terrain_updates = 4;
62}
63
64message Updates {
65    repeated Update updates = 1;
66}