Skip to content

Instantly share code, notes, and snippets.

@suzuki
Created February 10, 2022 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suzuki/6008f6582e63fbf8723bf33c3bb73f06 to your computer and use it in GitHub Desktop.
Save suzuki/6008f6582e63fbf8723bf33c3bb73f06 to your computer and use it in GitHub Desktop.
❯ go test -bench . ./oviewer -benchmem
goos: darwin
goarch: amd64
pkg: github.com/noborus/ov/oviewer
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkParseString_Normal-16 2498 420860 ns/op 903698 B/op 20 allocs/op
BenchmarkParseString_AnsiEscape-16 865 1318269 ns/op 1074041 B/op 1221 allocs/op
BenchmarkParseString_ChromaTerm-16 451 2651899 ns/op 4406445 B/op 1470 allocs/op
BenchmarkDraw_Normal-16 358 2822820 ns/op 1261143 B/op 4304 allocs/op
BenchmarkDraw_AnsiEscape-16 298 3926522 ns/op 1427113 B/op 5582 allocs/op
BenchmarkDraw_ChromaTerm-16 199 5992556 ns/op 3783354 B/op 7036 allocs/op
PASS
ok github.com/noborus/ov/oviewer 8.935s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment