You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PERFORMANCE.md
+25-10Lines changed: 25 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,16 +80,31 @@ The same test run on an AWS t2.xlarge Ubuntu 20.04 instance with 4 `Intel(R) Xeo
80
80
```
81
81
Running IsoAlloc Performance Test
82
82
83
-
iso_alloc/iso_free 1441616 tests completed in 0.418426 seconds
84
-
iso_calloc/iso_free 1441616 tests completed in 0.578068 seconds
85
-
iso_realloc/iso_free 1441616 tests completed in 0.681393 seconds
83
+
iso_alloc/iso_free 1441616 tests completed in 0.147336 seconds
84
+
iso_calloc/iso_free 1441616 tests completed in 0.161482 seconds
85
+
iso_realloc/iso_free 1441616 tests completed in 0.244981 seconds
86
86
87
87
Running glibc malloc Performance Test
88
88
89
-
malloc/free 1441616 tests completed in 0.352161 seconds
90
-
calloc/free 1441616 tests completed in 0.562425 seconds
91
-
realloc/free 1441616 tests completed in 0.590622 seconds
89
+
malloc/free 1441616 tests completed in 0.182437 seconds
90
+
calloc/free 1441616 tests completed in 0.246065 seconds
91
+
realloc/free 1441616 tests completed in 0.332292 seconds
92
+
```
93
+
94
+
Here is the same test as above on Mac OS 11.6
95
+
96
+
```
97
+
Running IsoAlloc Performance Test
98
+
99
+
iso_alloc/iso_free 1441616 tests completed in 0.124150 seconds
100
+
iso_calloc/iso_free 1441616 tests completed in 0.182955 seconds
101
+
iso_realloc/iso_free 1441616 tests completed in 0.275084 seconds
102
+
103
+
Running system malloc Performance Test
92
104
105
+
malloc/free 1441616 tests completed in 0.090845 seconds
106
+
calloc/free 1441616 tests completed in 0.200397 seconds
107
+
realloc/free 1441616 tests completed in 0.254574 seconds
93
108
```
94
109
95
110
This same test can be used with the `perf` utility to measure basic stats like page faults and CPU utilization using both heap implementations. The output below is on the same AWS t2.xlarge instance as above.
IsoAlloc isn't quite ready for performance sensitive server workloads but it's more than fast enough for client side mobile/desktop applications with risky C/C++ attack surface.
0 commit comments