Add performance information
This commit is contained in:
10
README.md
10
README.md
@@ -2,6 +2,10 @@
|
||||
The fastest PHP library to get mp3 tags&meta.
|
||||
|
||||
[](https://packagist.org/packages/wapmorgan/mp3info)
|
||||
[](https://packagist.org/packages/wapmorgan/mp3info)
|
||||
[](https://packagist.org/packages/wapmorgan/mp3info)
|
||||
[](https://packagist.org/packages/wapmorgan/mp3info)
|
||||
[](https://packagist.org/packages/wapmorgan/mp3info)
|
||||
|
||||
This class extracts information from mpeg/mp3 audio:
|
||||
|
||||
@@ -47,8 +51,10 @@ echo 'Song '.$audio->tags1['song'].' from '.$audio->tags1['artist'].PHP_EOL;
|
||||
|
||||
# Performance
|
||||
|
||||
* Typically it parses one mp3-file with size around 6-7 mb in less that 0.001 sec.
|
||||
* List of 112 files with constant & variable bitRate with total duration 5:22:28 are parsed in 1.76 sec.
|
||||
* Typically it parses one mp3-file with size around 6-7 mb in less than 0.001 sec.
|
||||
* List of 112 files with constant & variable bitRate with total duration 5:22:28 are parsed in 1.76 sec. *getId3* library againts exactly the same mp3 list works for 8x-10x slower - 9.9 sec.
|
||||
* If you want, there's a very easy way to compare. Just install `nass600/get-id3` package and run console scanner against any folder with audios. It will print time that Mp3Info spent and that getId3.
|
||||
|
||||
|
||||
# Console scanner
|
||||
To test Mp3Info you can use built-in script that scans dirs and analyzes all mp3-files inside them. To launch script against current folder:
|
||||
|
||||
Reference in New Issue
Block a user