Skip to content

Instantly share code, notes, and snippets.

@lox
Last active June 28, 2017 01:15
Show Gist options
  • Save lox/63eea73e0ca8809ec2b04fda2188949e to your computer and use it in GitHub Desktop.
Save lox/63eea73e0ca8809ec2b04fda2188949e to your computer and use it in GitHub Desktop.
Anka benchmarks

Benchmarking method

These are all done with a VM created with 10.12.3:

anka create-disk --size 20G --app /Applications/Install\ macOS\ Sierra.app
anka create --image-id $(image_id) anka-disk-base-xxx
anka start anka-disk-base-PVcEAPVQtr
sleep 30

The tests are then run on a macbook pro late 2015, with nothing else running.

Anka beta 38

 ~   › anka stop anka-disk-base-yUPXxmmBha
VM anka-disk-base-yUPXxmmBha is shutting down

 ~   › time anka run anka-disk-base-yUPXxmmBha echo hello world
hello world
anka run anka-disk-base-yUPXxmmBha echo hello world  0.25s user 0.05s system 0% cpu 55.431 total

~   › anka suspend anka-disk-base-yUPXxmmBha
VM anka-disk-base-yUPXxmmBha paused

 ~   › time anka run anka-disk-base-yUPXxmmBha echo hello world
hello world
anka run anka-disk-base-yUPXxmmBha echo hello world  0.26s user 0.06s system 7% cpu 4.454 total

Anka beta 39

 ~   › anka stop anka-disk-base-PVcEAPVQtr
VM anka-disk-base-PVcEAPVQtr is shutting down

 ~   › time anka run anka-disk-base-PVcEAPVQtr echo hello world
hello world
anka run anka-disk-base-PVcEAPVQtr echo hello world  0.40s user 0.11s system 0% cpu 2:07.17 total

 ~   › anka suspend anka-disk-base-PVcEAPVQtr
VM anka-disk-base-PVcEAPVQtr paused

 ~   › time anka run anka-disk-base-PVcEAPVQtr echo hello world
-anka: failed to mount /Users/lachlan
anka run anka-disk-base-PVcEAPVQtr echo hello world  0.40s user 0.09s system 30% cpu 1.630 total

 ~   › time anka run anka-disk-base-PVcEAPVQtr echo hello world
-anka: echo: Permission denied
anka run anka-disk-base-PVcEAPVQtr echo hello world  0.37s user 0.11s system 23% cpu 2.029 total

 ~   › time anka run anka-disk-base-PVcEAPVQtr echo hello world
-anka: echo: command not found
anka run anka-disk-base-PVcEAPVQtr echo hello world  0.31s user 0.05s system 23% cpu 1.528 total

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment