Skip to content

Commit

Permalink
perf / bench - allocate 128 rather than 512 levels
Browse files Browse the repository at this point in the history
Let's be fair on ourselves!
  • Loading branch information
mnunberg committed Apr 30, 2015
1 parent c555e2b commit bfa1480
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perf/bench.c
Expand Up @@ -28,7 +28,7 @@ int main(int argc, char **argv)
}
buf = malloc(sb.st_size);
fread(buf, 1, sb.st_size, fh);
jsn = jsonsl_new(512);
jsn = jsonsl_new(128);
for (ii = 0; ii < itermax; ii++) {
jsonsl_reset(jsn);
jsonsl_feed(jsn, buf, sb.st_size);
Expand Down
2 changes: 1 addition & 1 deletion perf/perftest.c
Expand Up @@ -61,7 +61,7 @@ run(int validate_utf8)
double starttime;

starttime = mygettime();
jsonsl_t jsn = jsonsl_new(512);
jsonsl_t jsn = jsonsl_new(128);
jsn->error_callback = error_callback;

/* allocate a parser */
Expand Down

0 comments on commit bfa1480

Please sign in to comment.