Improve Lua and JSON serialization

This commit is contained in:
Justine Tunney 2022-07-12 23:31:06 -07:00
parent 3027d67037
commit e3cd476a9b
20 changed files with 1041 additions and 476 deletions

View file

@ -130,7 +130,14 @@ void FreeBulk(void) {
}
}
void MallocFree(void) {
char *volatile p;
p = malloc(16);
free(p);
}
BENCH(bulk_free, bench) {
EZBENCH2("free(malloc(16))", donothing, MallocFree());
EZBENCH2("free() bulk", BulkFreeBenchSetup(), FreeBulk());
EZBENCH2("bulk_free()", BulkFreeBenchSetup(),
bulk_free(bulk, ARRAYLEN(bulk)));