-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
291 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Size each object/element = 1000\*64 bits | ||
|
||
-------------------------------------- | ||
| Array Length | Size | | ||
-------------------------------------- | ||
| 10 | 78.1 Kilo Bytes | | ||
| 100 | 781.2 Kilo Bytes | | ||
| 1000 | 7.6 Mega Bytes | | ||
| 10000 | 76.2 Mega Bytes | | ||
| 100000 | 762.9 Mega Bytes | | ||
| 400000 | 3051.7 Mega Bytes | | ||
-------------------------------------- | ||
|
||
------------------------------------------------------------------- | ||
| Array Length | std::sort | std::sort with swapping optimization | | ||
------------------------------------------------------------------- | ||
| 10 | 1 | 0.5285277077764 | | ||
| 100 | 1 | 0.4710165788783 | | ||
| 1000 | 1 | 0.4057255466440 | | ||
| 10000 | 1 | 0.3525010783507 | | ||
| 100000 | 1 | 0.2993293913040 | | ||
| 400000 | 1 | 0.2834329893917 | | ||
------------------------------------------------------------------- | ||
|
||
------------------------------------------------------------------- | ||
| Array Length | pdqsort | pdqsort with swapping optimization | | ||
------------------------------------------------------------------- | ||
| 10 | 1 | 0.6823455747541 | | ||
| 100 | 1 | 0.4675638045956 | | ||
| 1000 | 1 | 0.4135459923537 | | ||
| 10000 | 1 | 0.3613480052967 | | ||
| 100000 | 1 | 0.2978379938026 | | ||
| 400000 | 1 | 0.2766001987139 | | ||
------------------------------------------------------------------- | ||
|
||
------------------------------------------------------------------- | ||
| Array Length | spinsort | spinsort with swapping optimization | | ||
------------------------------------------------------------------- | ||
| 10 | 1 | 0.6826073837106 | | ||
| 100 | 1 | 0.3770882784316 | | ||
| 1000 | 1 | 0.1934754654256 | | ||
| 10000 | 1 | 0.1536743141055 | | ||
| 100000 | 1 | 0.1262359018549 | | ||
| 400000 | 1 | | | ||
------------------------------------------------------------------- | ||
|
||
---------------------------------------------------------------------------------- | ||
| Array Length | flat_stable_sort | flat_stable_sort with swapping optimization | | ||
---------------------------------------------------------------------------------- | ||
| 10 | 1 | 0.1550813004327 | | ||
| 100 | 1 | 0.2773391993192 | | ||
| 1000 | 1 | 0.1978331585708 | | ||
| 10000 | 1 | 0.1472313289969 | | ||
| 100000 | 1 | 0.1160065037227 | | ||
| 400000 | 1 | 0.1106390146959 | | ||
---------------------------------------------------------------------------------- | ||
|
Oops, something went wrong.