mirror of
https://github.com/Noratrieb/awwoc.git
synced 2026-01-15 12:15:02 +01:00
Merge 04067e4deb into 4475a4f7f0
This commit is contained in:
commit
e4e255a7fc
2 changed files with 35 additions and 0 deletions
5
LICENSE.txt
Normal file
5
LICENSE.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
the fuwwy amogus wicense
|
||||||
|
|
||||||
|
if you are a fuwwy, or identify as a sussy amogus impasta baka, you are permitted to copy, sell and use this work in any manner you choose without need to include any attwibution you do not see fit.
|
||||||
|
you are asked as a couwtesy to wetain this wicense in any derivatives but you are not wequiwed.
|
||||||
|
if do not belong the abovementioned categowy, go away.
|
||||||
30
README.md
Normal file
30
README.md
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
# awwoc
|
||||||
|
|
||||||
|
The most uwu awwocator ewer.
|
||||||
|
|
||||||
|
## awwoc is bwazing fast
|
||||||
|
|
||||||
|
here's how awwoc compawes to the default wust awwocator, in a very accuwate benchmawk:
|
||||||
|
1. allocate 10000 10 byte allocations, writing `69` to each byte.
|
||||||
|
2. deallocate all of them
|
||||||
|
|
||||||
|
| awwocator | time |
|
||||||
|
|--------------|-----------|
|
||||||
|
| wust default | 2.65 ms |
|
||||||
|
| awwoc | 763.73 ms |
|
||||||
|
|
||||||
|
as you can see, awwoc handily beats the wust awwocator.
|
||||||
|
|
||||||
|
## using awwoc
|
||||||
|
|
||||||
|
add
|
||||||
|
```rs
|
||||||
|
#[global_allocator]
|
||||||
|
static AWWOC: awwoc::Awwoc = awwoc::Awwoc;
|
||||||
|
```
|
||||||
|
to your wust pwogwam.
|
||||||
|
|
||||||
|
## unwuckily
|
||||||
|
|
||||||
|
awwoc only works on GNU/Winyux, or other posix opewating system kewnels.
|
||||||
|
it also works on every platform using miwi!
|
||||||
Loading…
Add table
Add a link
Reference in a new issue