Skip to content

Commit 3e6cff4

Browse files
committed
Update readmme
1 parent 49972bf commit 3e6cff4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,17 @@ std::cout << std::hex << 0xfedcba9876543210fedcba9876543210_ui128 << "\n";
9292
* Location of digits always corresponds to little-endian, regardless of the platform, which should be taken into account when serialization/deserialization. The digits themselves are always in platform natural order.
9393
## Examples
9494
[main.cpp](examples/main.cpp) - examples of using the main interface of the library with comments.
95+
## Performance
96+
All measurements are not intended to be a strong performance tests and are provided simply for relative comparison of the operation costs. All measurements were taken on Intel (R) Core (TM) i5-9400F CPU @ 2.90GHz in a 64-bit configuration with 128-bit integers.
97+
| Operation | Average time (in ns.) |
98+
|--:|---|
99+
| Unsigned addition | 0.25 |
100+
| Signed addition | 0.25 |
101+
| Unsigned subtraction | 0.25 |
102+
| Signed subtraction | 0.25 |
103+
| Unsigned multiplication | 7.00 |
104+
| Signed multiplication | 7.00 |
105+
| Unsigned division | 15.00 |
106+
| Signed division | 20.00 |
107+
| Unsigned muldiv() | 20.00 |
108+
| Signed muldiv() | 25.00 |

0 commit comments

Comments
 (0)