Skip to content

Commit f82b45a

Browse files
authored
Updated benchmark results on workstation
1 parent 99520cd commit f82b45a

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

README.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main()
3535
}
3636
```
3737

38-
On a [modern workstation desktop](#hardware-details), the above code executes in `~3.5s`.
38+
On a [modern workstation desktop](#system-details), the above code executes in `~3.5s`.
3939

4040
| Type | Value |
4141
| --------------- | --------------------|
@@ -222,29 +222,46 @@ foo@bar:~/dev/binary_log$ hexdump -C log.out.index
222222

223223
# Benchmarks
224224

225-
### Hardware Details
225+
### System Details
226226

227227
| Type | Value |
228228
| --------------- | --------------------------------------------------------------------------------------------------------- |
229229
| Processor | 11th Gen Intel(R) Core(TM) i9-11900KF @ 3.50GHz 3.50 GHz |
230230
| Installed RAM | 32.0 GB (31.9 GB usable) |
231231
| SSD | [ADATA SX8200PNP](https://www.adata.com/upload/downloadfile/Datasheet_XPG%20SX8200%20Pro_EN_20181017.pdf) |
232232
| OS | Ubuntu 20.04 LTS running on WSL in Windows 11 |
233+
| C++ Compiler | g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 |
233234

234235
```console
235236
foo@bar:~/dev/binary_log$ ./build/benchmark/binary_log_benchmark --benchmark_counters_tabular=true
236-
2021-12-03T13:42:15-06:00
237+
2021-12-06T08:15:45-06:00
237238
Running ./build/benchmark/binary_log_benchmark
238239
Run on (16 X 3504 MHz CPU s)
239240
Load Average: 0.52, 0.58, 0.59
240-
-------------------------------------------------------------------------------------------------------
241-
Benchmark Time CPU Iterations Bytes/s Latency Logs/s
242-
-------------------------------------------------------------------------------------------------------
243-
BM_binary_log_static_string 0.678 ns 0.672 ns 1000000000 1.48837G/s 671.875ps 1.48837G/s
244-
BM_binary_log_constants 0.676 ns 0.680 ns 896000000 1.47036G/s 680.106ps 1.47036G/s
245-
BM_binary_log_integer 2.05 ns 2.04 ns 344615385 2.4506G/s 2.04032ns 490.12M/s
246-
BM_binary_log_double 6.14 ns 6.14 ns 112000000 1.46618G/s 6.13839ns 162.909M/s
247-
BM_binary_log_string 12.2 ns 12.2 ns 64000000 1.39264G/s 12.207ns 81.92M/s
241+
------------------------------------------------------------------------------------------------------------------------
242+
Benchmark Time CPU Iterations Latency Logs/s
243+
------------------------------------------------------------------------------------------------------------------------
244+
BM_binary_log_static_integer<uint8_t>/42 1.56 ns 1.57 ns 448000000 1.56948ns 637.156M/s
245+
BM_binary_log_static_integer<uint16_t>/395 2.25 ns 2.25 ns 298666667 2.24958ns 444.527M/s
246+
BM_binary_log_static_integer<uint32_t>/3123456789 3.58 ns 3.53 ns 194782609 3.52958ns 283.32M/s
247+
BM_binary_log_static_integer<uint64_t>/9876543123456789 6.37 ns 6.42 ns 112000000 6.41741ns 155.826M/s
248+
BM_binary_log_static_integer<int8_t>/-42 1.58 ns 1.57 ns 448000000 1.56948ns 637.156M/s
249+
BM_binary_log_static_integer<int16_t>/-395 2.29 ns 2.29 ns 320000000 2.29492ns 435.745M/s
250+
BM_binary_log_static_integer<int32_t>/-123456789 3.76 ns 3.75 ns 179200000 3.7493ns 266.716M/s
251+
BM_binary_log_static_integer<int64_t>/-9876543123456789 6.31 ns 6.28 ns 112000000 6.2779ns 159.289M/s
252+
BM_binary_log_static_float 3.02 ns 3.05 ns 235789474 3.04827ns 328.055M/s
253+
BM_binary_log_static_double 5.64 ns 5.62 ns 100000000 5.625ns 177.778M/s
254+
BM_binary_log_static_string 4.28 ns 4.33 ns 165925926 4.33175ns 230.853M/s
255+
BM_binary_log_random_integer<uint8_t> 7.60 ns 7.50 ns 89600000 7.4986ns 133.358M/s
256+
BM_binary_log_random_integer<uint16_t> 7.84 ns 7.85 ns 89600000 7.84738ns 127.431M/s
257+
BM_binary_log_random_integer<uint32_t> 8.56 ns 8.58 ns 74666667 8.5798ns 116.553M/s
258+
BM_binary_log_random_integer<uint64_t> 17.7 ns 17.6 ns 40727273 17.6479ns 56.664M/s
259+
BM_binary_log_random_integer<int8_t> 8.00 ns 7.95 ns 74666667 7.95201ns 125.754M/s
260+
BM_binary_log_random_integer<int16_t> 7.89 ns 7.85 ns 89600000 7.84738ns 127.431M/s
261+
BM_binary_log_random_integer<int32_t> 8.77 ns 8.79 ns 74666667 8.78906ns 113.778M/s
262+
BM_binary_log_random_integer<int64_t> 17.4 ns 17.6 ns 37333333 17.5781ns 56.8889M/s
263+
BM_binary_log_random_real<float> 6.94 ns 6.84 ns 112000000 6.83594ns 146.286M/s
264+
BM_binary_log_random_real<double> 12.7 ns 12.6 ns 49777778 12.5558ns 79.6444M/s
248265
```
249266

250267
# Implementation Notes

0 commit comments

Comments
 (0)