Skip to content

Commit

Permalink
README: Actually run a new "make benchmark"
Browse files Browse the repository at this point in the history
  • Loading branch information
lfittl committed Dec 23, 2023
1 parent d3f7487 commit a5e2cb9
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,26 +174,26 @@ go test -test.bench=. -test.run=XXX -test.benchtime 10s -test.benchmem -test.cpu
goos: darwin
goarch: arm64
pkg: github.com/pganalyze/pg_query_go/v5
BenchmarkParseSelect1-4 3230398 3656 ns/op 1104 B/op 20 allocs/op
BenchmarkParseSelect2-4 927363 12739 ns/op 2896 B/op 59 allocs/op
BenchmarkParseCreateTable-4 399819 30080 ns/op 8432 B/op 151 allocs/op
BenchmarkParseSelect1Parallel-4 10951803 1094 ns/op 1104 B/op 20 allocs/op
BenchmarkParseSelect2Parallel-4 3255471 3675 ns/op 2896 B/op 59 allocs/op
BenchmarkParseCreateTableParallel-4 1341716 8919 ns/op 8432 B/op 151 allocs/op
BenchmarkRawParseSelect1-4 4275111 2795 ns/op 192 B/op 5 allocs/op
BenchmarkRawParseSelect2-4 1252704 9534 ns/op 352 B/op 5 allocs/op
BenchmarkRawParseCreateTable-4 503385 23168 ns/op 1120 B/op 5 allocs/op
BenchmarkRawParseSelect1Parallel-4 15446528 780.1 ns/op 192 B/op 5 allocs/op
BenchmarkRawParseSelect2Parallel-4 4638837 2595 ns/op 352 B/op 5 allocs/op
BenchmarkRawParseCreateTableParallel-4 1932316 6197 ns/op 1120 B/op 5 allocs/op
BenchmarkFingerprintSelect1-4 6583965 1795 ns/op 112 B/op 4 allocs/op
BenchmarkFingerprintSelect2-4 2962663 4015 ns/op 112 B/op 4 allocs/op
BenchmarkFingerprintCreateTable-4 1796041 6831 ns/op 112 B/op 4 allocs/op
BenchmarkNormalizeSelect1-4 10073278 1171 ns/op 72 B/op 4 allocs/op
BenchmarkNormalizeSelect2-4 6029834 1932 ns/op 104 B/op 4 allocs/op
BenchmarkNormalizeCreateTable-4 4703816 2490 ns/op 184 B/op 4 allocs/op
BenchmarkParseSelect1-4 2945772 4234 ns/op 1104 B/op 20 allocs/op
BenchmarkParseSelect2-4 798510 14618 ns/op 2896 B/op 59 allocs/op
BenchmarkParseCreateTable-4 340454 33893 ns/op 8544 B/op 151 allocs/op
BenchmarkParseSelect1Parallel-4 9166213 1332 ns/op 1104 B/op 20 allocs/op
BenchmarkParseSelect2Parallel-4 2795493 4329 ns/op 2896 B/op 59 allocs/op
BenchmarkParseCreateTableParallel-4 1000000 10325 ns/op 8544 B/op 151 allocs/op
BenchmarkRawParseSelect1-4 3775879 3186 ns/op 192 B/op 5 allocs/op
BenchmarkRawParseSelect2-4 1000000 10708 ns/op 352 B/op 5 allocs/op
BenchmarkRawParseCreateTable-4 466368 25662 ns/op 1120 B/op 5 allocs/op
BenchmarkRawParseSelect1Parallel-4 13386709 894.4 ns/op 192 B/op 5 allocs/op
BenchmarkRawParseSelect2Parallel-4 4188447 2871 ns/op 352 B/op 5 allocs/op
BenchmarkRawParseCreateTableParallel-4 1758555 6809 ns/op 1120 B/op 5 allocs/op
BenchmarkFingerprintSelect1-4 6139764 1970 ns/op 112 B/op 4 allocs/op
BenchmarkFingerprintSelect2-4 2813995 4264 ns/op 112 B/op 4 allocs/op
BenchmarkFingerprintCreateTable-4 1668691 7194 ns/op 112 B/op 4 allocs/op
BenchmarkNormalizeSelect1-4 10068253 1189 ns/op 72 B/op 4 allocs/op
BenchmarkNormalizeSelect2-4 6039188 1981 ns/op 104 B/op 4 allocs/op
BenchmarkNormalizeCreateTable-4 4560278 2636 ns/op 184 B/op 4 allocs/op
PASS
ok github.com/pganalyze/pg_query_go/v5 273.449s
ok github.com/pganalyze/pg_query_go/v5 257.324s
```

Note that allocation counts exclude the cgo portion, so they are higher than shown here.
Expand Down

0 comments on commit a5e2cb9

Please sign in to comment.