diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-07-01 09:16:42 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-07-01 09:16:42 +0200 |
| commit | b5d2ba7af071b539680ce6bf8c5a2a53f9a5bee8 (patch) | |
| tree | 12e2f3c79f8e28077c618fb64e1fc8ee57041904 /README.md | |
| parent | 8f71306c3cf63bde693467f76e7353448b6c167f (diff) | |
| download | mp4-b5d2ba7af071b539680ce6bf8c5a2a53f9a5bee8.tar.gz mp4-b5d2ba7af071b539680ce6bf8c5a2a53f9a5bee8.zip | |
docs: add performance benchmarks to README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -135,3 +135,22 @@ The [cmd](./cmd) directory contains small programs built on these packages: - `mp4dump` prints the box structure of a file as text or JSON. - `mp4probe` displays track and fragment information. - `mp4remux` remuxes a file into fragmented MP4. + +## Performance + +``` +goos: darwin +goarch: arm64 +pkg: github.com/tetsuo/mp4 +cpu: Apple M4 Pro +BenchmarkReaderParse +BenchmarkReaderParse-12 3547731 317.4 ns/op 58353.33 MB/s 0 B/op 0 allocs/op +BenchmarkStszIter +BenchmarkStszIter-12 897819 1230.0 ns/op 2348.81 MB/s 0 B/op 0 allocs/op +BenchmarkWriterBuild +BenchmarkWriterBuild-12 15768681 76.26 ns/op 0 B/op 0 allocs/op +BenchmarkScannerParse +BenchmarkScannerParse-12 343438 3512.0 ns/op 5274.38 MB/s 0 B/op 0 allocs/op +PASS +ok github.com/tetsuo/mp4 5.023s +``` |
