Skip to content

GMT 5 much slower than GMT 4? #587

@alomax

Description

@alomax

Equivalent command line scripts take more than twice as long to run in GMT 5 than in GMT 4

We use GMT extensively for maps, earthquake mechanisms and other plots in a time-sensitive, real-time system: http://early-est.alomax.net

The latest versions of our software using GMT 5 are broken because the plotting and reporting module does not complete fast enough. We suspect this may be primarily due to much the longer processing time needed for command line GMT 5 than for GMT 4:

~/temp> gmt --version
GMT Version 4.5.7
~/temp> time ./test_GMT4.bash 
real	0m0.212s
user	0m0.146s
sys	0m0.050s
~/temp> time ./test_GMT4.bash 
real	0m0.194s
user	0m0.136s
sys	0m0.043s
~/temp> time ./test_GMT4.bash 
real	0m0.244s
user	0m0.139s
sys	0m0.044s
~/temp> time ./test_GMT4.bash 
real	0m0.190s
user	0m0.132s
sys	0m0.043s

~/temp> gmt --version
5.4.5
~/temp> time test_GMT5.bash 
real	0m0.455s
user	0m0.597s
sys	0m0.450s
~/temp> time test_GMT5.bash 
real	0m0.477s
user	0m0.530s
sys	0m0.500s
~/temp> time test_GMT5.bash 
real	0m0.415s
user	0m0.703s
sys	0m0.366s
~/temp> time test_GMT5.bash 
real	0m0.420s
user	0m0.643s
sys	0m0.404s

Full scripts that show the difference in run time:

https://www.dropbox.com/s/0asx13o1ahiz1dr/test_GMT4.bash?dl=0
https://www.dropbox.com/s/cz0acpj4cueyatz/test_GMT5.bash?dl=0

System information

  • Operating system:
    System Version: OS X 10.10.5 (14F2511)
    Kernel Version: Darwin 14.5.0

  • Hardware:
    Model Name: iMac
    Model Identifier: iMac14,2
    Processor Name: Intel Core i7
    Processor Speed: 3.5 GHz
    Number of Processors: 1
    Total Number of Cores: 4
    L2 Cache (per Core): 256 KB
    L3 Cache: 8 MB
    Memory: 16 GB

  • Version of GMT: 4.5.7 and 5.4.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    longtermLong standing issues that need to be resolved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions