Skip to content

Commit adb2e09

Browse files
committed
chore: update tpcc doc
1 parent 992225a commit adb2e09

File tree

3 files changed

+98
-112
lines changed

3 files changed

+98
-112
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ run `cargo run -p tpcc --release` to run tpcc
9090
- Tips: TPC-C currently only supports single thread
9191
```shell
9292
<90th Percentile RT (MaxRT)>
93-
New-Order : 0.002 (0.018)
94-
Payment : 0.001 (0.024)
95-
Order-Status : 0.050 (0.067)
96-
Delivery : 0.021 (0.030)
97-
Stock-Level : 0.003 (0.005)
93+
New-Order : 0.002 (0.005)
94+
Payment : 0.001 (0.003)
95+
Order-Status : 0.057 (0.088)
96+
Delivery : 0.001 (0.001)
97+
Stock-Level : 0.002 (0.006)
9898
<TpmC>
99-
8101 Tpmc
99+
11125 Tpmc
100100
```
101101
#### 👉[check more](tpcc/README.md)
102102

src/types/value.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,11 @@ impl DataValue {
824824
Self::memcomparable_decode_mapping(reader, ty, None)
825825
}
826826

827+
#[inline]
827828
pub fn memcomparable_decode_mapping<R: Read>(
828829
reader: &mut R,
829830
ty: &LogicalType,
831+
// for index cover mapping reduce one layer of conversion
830832
tuple_mapping: Option<TupleMappingRef<'_>>,
831833
) -> Result<DataValue, DatabaseError> {
832834
if reader.read_u8()? == 0u8 {

tpcc/README.md

Lines changed: 90 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ run `cargo run -p tpcc --release` to run tpcc
66
- KIOXIA-EXCERIA PLUS G3 SSD
77
- Tips: TPCC currently only supports single thread
88
```shell
9-
|New-Order| sc: 93779 lt: 0 fl: 926
10-
|Payment| sc: 93759 lt: 0 fl: 0
11-
|Order-Status| sc: 9376 lt: 0 fl: 417
12-
|Delivery| sc: 9375 lt: 0 fl: 0
13-
|Stock-Level| sc: 9375 lt: 0 fl: 0
9+
|New-Order| sc: 133498 lt: 0 fl: 1360
10+
|Payment| sc: 133473 lt: 0 fl: 0
11+
|Order-Status| sc: 13348 lt: 0 fl: 450
12+
|Delivery| sc: 13348 lt: 0 fl: 0
13+
|Stock-Level| sc: 13347 lt: 0 fl: 0
1414
in 720 sec.
1515
<Constraint Check> (all must be [OK])
1616
[transaction percentage]
@@ -24,129 +24,113 @@ in 720 sec.
2424
Order-Status: 100.0 [OK]
2525
Delivery: 100.0 [OK]
2626
Stock-Level: 100.0 [OK]
27-
New-Order Total: 93779
28-
Payment Total: 93759
29-
Order-Status Total: 9376
30-
Delivery Total: 9375
31-
Stock-Level Total: 9375
27+
New-Order Total: 133498
28+
Payment Total: 133473
29+
Order-Status Total: 13348
30+
Delivery Total: 13348
31+
Stock-Level Total: 13347
3232

3333

3434
<RT Histogram>
3535

3636
1.New-Order
3737

38-
0.001, 20973
39-
0.002, 71372
40-
0.003, 1306
41-
0.004, 15
38+
0.001, 83231
39+
0.002, 49784
40+
0.003, 36
41+
0.004, 4
4242
0.005, 2
4343

4444
2.Payment
4545

46-
0.001, 90277
47-
0.002, 3307
48-
0.003, 11
49-
0.004, 3
46+
0.001, 133281
47+
0.002, 184
48+
0.003, 2
5049

5150
3.Order-Status
5251

53-
0.013, 24
54-
0.014, 108
55-
0.015, 189
56-
0.016, 207
57-
0.017, 201
58-
0.018, 207
59-
0.019, 221
60-
0.020, 198
61-
0.021, 187
62-
0.022, 163
63-
0.023, 175
64-
0.024, 259
65-
0.025, 298
66-
0.026, 300
67-
0.027, 239
68-
0.028, 207
69-
0.029, 165
70-
0.030, 142
71-
0.031, 135
72-
0.032, 205
73-
0.033, 303
74-
0.034, 270
75-
0.035, 272
76-
0.036, 170
77-
0.037, 138
78-
0.038, 156
79-
0.039, 175
80-
0.040, 193
81-
0.041, 207
82-
0.042, 211
83-
0.043, 264
84-
0.044, 304
85-
0.045, 265
86-
0.046, 224
87-
0.047, 172
88-
0.048, 176
89-
0.049, 172
90-
0.050, 207
91-
0.051, 238
92-
0.052, 269
93-
0.053, 219
94-
0.054, 242
95-
0.055, 156
96-
0.056, 134
97-
0.057, 94
98-
0.058, 88
99-
0.059, 75
100-
0.060, 49
101-
0.061, 13
102-
0.062, 4
103-
0.063, 1
104-
0.064, 1
105-
0.076, 1
106-
0.080, 1
107-
0.117, 1
108-
0.127, 1
109-
0.150, 1
110-
0.158, 1
111-
0.172, 1
112-
0.176, 1
52+
0.012, 31
53+
0.013, 265
54+
0.014, 332
55+
0.015, 307
56+
0.016, 296
57+
0.017, 284
58+
0.018, 303
59+
0.019, 415
60+
0.020, 386
61+
0.021, 382
62+
0.022, 252
63+
0.023, 228
64+
0.024, 264
65+
0.025, 249
66+
0.026, 268
67+
0.027, 253
68+
0.028, 246
69+
0.029, 277
70+
0.030, 253
71+
0.031, 237
72+
0.032, 289
73+
0.033, 172
74+
0.034, 192
75+
0.035, 268
76+
0.036, 266
77+
0.037, 276
78+
0.038, 243
79+
0.039, 223
80+
0.040, 216
81+
0.041, 225
82+
0.042, 248
83+
0.043, 193
84+
0.044, 174
85+
0.045, 307
86+
0.046, 305
87+
0.047, 246
88+
0.048, 213
89+
0.049, 267
90+
0.050, 197
91+
0.051, 182
92+
0.052, 207
93+
0.053, 84
94+
0.054, 42
95+
0.055, 54
96+
0.056, 102
97+
0.057, 156
98+
0.058, 165
99+
0.059, 199
100+
0.060, 195
101+
0.061, 173
102+
0.062, 141
103+
0.063, 102
104+
0.064, 56
105+
0.065, 29
106+
0.066, 8
107+
0.067, 6
108+
0.068, 2
109+
0.069, 3
110+
0.075, 1
111+
0.078, 1
113112

114113
4.Delivery
115114

116-
0.011, 117
117-
0.012, 483
118-
0.013, 659
119-
0.014, 704
120-
0.015, 790
121-
0.016, 911
122-
0.017, 969
123-
0.018, 974
124-
0.019, 895
125-
0.020, 927
126-
0.021, 782
127-
0.022, 542
128-
0.023, 362
129-
0.024, 209
130-
0.025, 45
131-
0.026, 1
132-
0.027, 3
115+
0.001, 11129
116+
0.002, 1
133117

134118
5.Stock-Level
135119

136-
0.001, 1815
137-
0.002, 3454
138-
0.003, 3646
139-
0.004, 377
140-
0.005, 28
120+
0.001, 5697
121+
0.002, 4669
122+
0.003, 494
123+
0.004, 8
124+
0.005, 1
141125

142126
<90th Percentile RT (MaxRT)>
143-
New-Order : 0.002 (0.004)
144-
Payment : 0.001 (0.025)
145-
Order-Status : 0.053 (0.175)
146-
Delivery : 0.022 (0.027)
147-
Stock-Level : 0.003 (0.019)
127+
New-Order : 0.002 (0.005)
128+
Payment : 0.001 (0.003)
129+
Order-Status : 0.057 (0.088)
130+
Delivery : 0.001 (0.001)
131+
Stock-Level : 0.002 (0.006)
148132
<TpmC>
149-
7815 tpmC
133+
11125 Tpmc
150134
```
151135

152136
## Explain

0 commit comments

Comments
 (0)