Skip to content

Commit

Permalink
Update readmme
Browse files Browse the repository at this point in the history
  • Loading branch information
devatrun committed Dec 24, 2021
1 parent 49972bf commit 3e6cff4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,17 @@ std::cout << std::hex << 0xfedcba9876543210fedcba9876543210_ui128 << "\n";
* 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.
## Examples
[main.cpp](examples/main.cpp) - examples of using the main interface of the library with comments.
## Performance
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.
| Operation | Average time (in ns.) |
|--:|---|
| Unsigned addition | 0.25 |
| Signed addition | 0.25 |
| Unsigned subtraction | 0.25 |
| Signed subtraction | 0.25 |
| Unsigned multiplication | 7.00 |
| Signed multiplication | 7.00 |
| Unsigned division | 15.00 |
| Signed division | 20.00 |
| Unsigned muldiv() | 20.00 |
| Signed muldiv() | 25.00 |

0 comments on commit 3e6cff4

Please sign in to comment.