Skip to content

Instantly share code, notes, and snippets.

@AdamMagaluk
Last active December 11, 2015 06:19
Show Gist options
  • Save AdamMagaluk/4558419 to your computer and use it in GitHub Desktop.
Save AdamMagaluk/4558419 to your computer and use it in GitHub Desktop.
Profile data between git/mercurial commands

Mercurial / Git Command Time comparison

Repositories

Mercurial: http://hg.gajim.org/gajim: 1,309 items, totalling 19.0 MB

Git:https://github.com/joyent/node 8,916 items, totalling 90.3 MB

Running Branch Command

Batch Command Graph

##In Repository

time hg branch 2> /dev/null 
real  0m0.033s
user	0m0.028s
sys	0m0.004s

time git branch 2> /dev/null
real	0m0.001s
user	0m0.000s
sys	0m0.000s

##Out Repository

time hg branch 2> /dev/null
real	0m0.028s
user	0m0.016s 
sys	0m0.012s

time git branch 2> /dev/null
real	0m0.001s
user	0m0.000s
sys	0m0.000s

Running Status Command

Status Command Graph

##In Repository

time hg status 2> /dev/null 
real	0m0.048s
user	0m0.036s
sys	0m0.012s

time git status 2> 
real	0m0.236s
user	0m0.204s
sys	0m0.032s

##Out Repository

time hg status 2> /dev/null
real	0m0.028s
user	0m0.016s
sys	0m0.012s

time git status 2> /dev/null
real	0m0.001s
user	0m0.000s
sys	0m0.000s

Test Enviroment

Debian 6.0 - Linux adamm-debian 2.6.32-5-amd64

git version 1.7.2.5

Mercurial Distributed SCM (version 2.2-rc)

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
CPU(s):                4
Thread(s) per core:    1
Core(s) per socket:    4
CPU socket(s):         1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 26
Stepping:              5
CPU MHz:               3199.587
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              8192K
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment