The question is to general to answer it.
You should provide some example code used for export.
To speed up the execution time you could tweak your config file.
There are some differences between MySql and MariaDB settings. Take a
look here https://mariadb.com/kb/en/library/system-variable-differences-between-mariadb-101-and-mysql-56/
You should know what are you using MyISAM or InnoDB.
The most notable differences are that MariaDB includes, by default,
the Aria storage engine (resulting in extra memory allocation), Galera
Cluster, uses Percona's XtraDB instead of Oracle's InnoDB, and has a
different thread pool implementation. For this reason, a default
implementation of MariaDB 10.1 will use more memory than MySQL 5.6.
MariaDB 10.1 and MySQL 5.6 also have different GTID implementations.
MariaDB's extra memory usage can be handled with the following rules
of thumb:
If you are not using MyISAM and don't plan to use Aria:
Set key_buffer_size to something very low (16K) as it's not used.
Set aria_pagecache_buffer_size to what you think you need for
handling internal tmp tables that didn't fit in memory.
Normally this is what before you had set for key_buffer_size (at
least 1M).
If you are using MyISAM and not planning to use Aria:
Set aria_pagecache_buffer_size to what you think you need for
handling internal tmp tables that didn't fit in memory.
If you are planning to use Aria, you should set
aria_pagecache_buffer_size to something that fits a big part of your
normal data + overflow temporary tables.
And here are the default values in MySQL 5.6 https://dev.mysql.com/doc/refman/5.6/en/server-default-changes.html