Added memcpy.

This commit is contained in:
Daniel Lemire 2018-11-20 18:06:03 -05:00
parent f1228d0b98
commit 21ee490d18
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ int main(int argc, char *argv[]) {
BEST_TIME("gason ", jsonParse(buffer, &endptr, &value, allocator), JSON_OK, memcpy(buffer, p.first, p.second), repeat, volume, true);
void *state;
BEST_TIME("ultrajson ", (UJDecode(buffer, p.second, NULL, &state) == NULL), false, memcpy(buffer, p.first, p.second), repeat, volume, true);
BEST_TIME("memcpy ", (memcpy(buffer, p.first, p.second) == buffer), true, , repeat, volume, true);
free(p.first);
free(ast_buffer);
deallocate_ParsedJson(pj_ptr);