Updating the json minifier benchmark to match that of the new API.

This commit is contained in:
Daniel Lemire 2019-12-02 10:46:03 -05:00
parent 4e1c90f76f
commit f32b97733b
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ int main(int argc, char *argv[]) {
BEST_TIME("simdjson orig",
simdjson::json_parse((const uint8_t *)buffer, p.size(), pj,
automated_reallocation),
true, memcpy(buffer, p.data(), p.size()), repeat, volume,
simdjson::SUCCESS, memcpy(buffer, p.data(), p.size()), repeat, volume,
!just_data);
simdjson::ParsedJson pj2;
@ -173,7 +173,7 @@ int main(int argc, char *argv[]) {
BEST_TIME("simdjson despaced",
simdjson::json_parse((const uint8_t *)buffer, minisize, pj2,
automated_reallocation),
true, memcpy(buffer, mini_buffer, p.size()), repeat, volume,
simdjson::SUCCESS, memcpy(buffer, mini_buffer, p.size()), repeat, volume,
!just_data);
free(buffer);
free(ast_buffer);