OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 20 10 473 22 22 23.89 1.13
bin-true no-host 677 553 2,294 827 809 3.39 1.22
configure.cpython no-host 15,325 15,520 29,392 15,685 15,775 1.92 1.02
configure.ocaml no-host 3,922 3,813 4,779 3,913 3,902 1.22 1.00
configure.tcc no-host 48 43 204 50 50 4.25 1.04
configure.util-linux no-host 14,409 15,270 31,884 14,740 14,757 2.21 1.02
configure.yash no-host 1,866 1,807 2,533 1,880 1,864 1.36 1.01
hello-world no-host 2 1 59 3 3 39.04 1.90

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,555 1,120 23,427 3,203 3,149 9.17 1.25
bin-true no-host 106,340 65,377 761,792 129,163 127,268 7.16 1.21
configure.cpython no-host 2,217,793 2,241,490 6,215,676 2,220,300 2,217,913 2.80 1.00
configure.ocaml no-host 410,378 391,772 644,556 412,792 412,729 1.57 1.01
configure.tcc no-host 6,552 5,489 23,941 6,953 6,902 3.65 1.06
configure.util-linux no-host 2,091,297 2,260,760 5,366,134 1,998,976 1,992,876 2.57 0.96
configure.yash no-host 256,224 245,165 386,889 257,180 257,330 1.51 1.00
hello-world no-host 150 83 3,949 341 336 26.33 2.27

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 22.7 9.2 8.8 5.10 2.06
bin-true no-host 2.9 1.4 18.4 8.0 7.7 6.38 2.77
configure.cpython no-host 27.4 27.5 27.5 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.4 24.4 0.99 0.99
hello-world no-host 2.8 1.4 18.3 6.2 5.9 6.63 2.24

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.2 6.2 3,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 827 1 2 2.6 8.0 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,685 1 64 14.9 27.4 1,771,800 49,612 28,519 85,427 878,134 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,740 3 64 21.2 30.1 2,702,546 53,773 65,698 108,699 1,290,651 1,303,196 32,241 41 131,396 1
configure.ocaml no-host 3,913 1 2 2.6 20.6 150,087 11,119 5,214 7,508 70,972 71,607 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,593 30,593 0 1,518 14,644 14,431 271 0 50,000 0
configure.yash no-host 1,880 1 2 2.5 24.4 139,419 8,031 6,693 5,989 67,945 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 809 1 2 2.6 7.7 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,775 1 64 14.9 27.5 1,771,799 49,070 28,457 85,428 878,134 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,757 3 64 21.2 30.3 2,702,546 53,700 65,636 108,701 1,290,651 1,303,194 32,241 41 131,272 1
configure.ocaml no-host 3,902 1 2 2.6 20.6 150,087 11,057 5,152 7,510 70,972 71,605 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,593 30,593 0 1,520 14,644 14,429 271 0 50,000 0
configure.yash no-host 1,864 1 2 2.5 24.4 139,419 7,969 6,631 5,991 67,945 65,483 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,298 64,348 42,558 4,533 54,439 57,326 277 3 85,116 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 20 9 11 4.5 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 473 429 47 22.7 osh-cpython
31 no-host abuild-print-help 22 20 3 9.2 osh-native
39 no-host abuild-print-help 22 14 8 8.8 osh-native-souffle
1 no-host bin-true 677 517 192 2.9 bash
9 no-host bin-true 553 429 131 1.4 dash
17 no-host bin-true 2,294 1,496 1,056 18.4 osh-cpython
25 no-host bin-true 827 590 253 8.0 osh-native
33 no-host bin-true 809 582 246 7.7 osh-native-souffle
2 no-host configure.cpython 15,325 9,226 6,501 27.4 bash
10 no-host configure.cpython 15,520 9,371 6,568 27.5 dash
18 no-host configure.cpython 29,392 17,995 13,288 27.5 osh-cpython
26 no-host configure.cpython 15,685 9,470 6,482 27.4 osh-native
34 no-host configure.cpython 15,775 9,077 6,826 27.5 osh-native-souffle
4 no-host configure.ocaml 3,922 1,687 1,271 20.6 bash
12 no-host configure.ocaml 3,813 1,679 1,152 20.6 dash
20 no-host configure.ocaml 4,779 2,333 1,658 20.6 osh-cpython
28 no-host configure.ocaml 3,913 1,724 1,225 20.6 osh-native
36 no-host configure.ocaml 3,902 1,697 1,242 20.6 osh-native-souffle
5 no-host configure.tcc 48 33 15 19.4 bash
13 no-host configure.tcc 43 23 20 19.3 dash
21 no-host configure.tcc 204 150 58 19.4 osh-cpython
29 no-host configure.tcc 50 40 11 19.4 osh-native
37 no-host configure.tcc 50 31 19 19.4 osh-native-souffle
3 no-host configure.util-linux 14,409 8,982 5,894 30.1 bash
11 no-host configure.util-linux 15,270 9,256 6,473 30.0 dash
19 no-host configure.util-linux 31,884 21,259 11,704 30.1 osh-cpython
27 no-host configure.util-linux 14,740 8,815 6,122 30.1 osh-native
35 no-host configure.util-linux 14,757 8,815 6,138 30.3 osh-native-souffle
6 no-host configure.yash 1,866 1,062 813 24.5 bash
14 no-host configure.yash 1,807 1,045 765 24.4 dash
22 no-host configure.yash 2,533 1,499 1,076 24.2 osh-cpython
30 no-host configure.yash 1,880 1,105 778 24.4 osh-native
38 no-host configure.yash 1,864 1,068 800 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 59 47 12 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 0 3 5.9 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,555 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,120 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,427 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,203 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,149 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,340 0 0 0 8 0 1,992 97 bash
9 no-host bin-true 65,377 0 0 0 8 0 1,994 55 dash
17 no-host bin-true 761,792 0 0 0 8 0 1,994 161 osh-cpython
25 no-host bin-true 129,163 0 0 0 16 0 1,992 82 osh-native
33 no-host bin-true 127,268 0 0 0 16 0 1,994 48 osh-native-souffle
2 no-host configure.cpython 2,217,793 1 0 0 32,928 0 14,557 914 bash
10 no-host configure.cpython 2,241,490 0 0 0 32,992 0 14,666 1,111 dash
18 no-host configure.cpython 6,215,676 0 0 0 27,512 0 13,296 1,313 osh-cpython
26 no-host configure.cpython 2,220,300 1 0 0 27,520 0 13,233 1,088 osh-native
34 no-host configure.cpython 2,217,913 0 0 0 27,520 0 13,298 955 osh-native-souffle
4 no-host configure.ocaml 410,378 0 0 0 5,120 0 1,947 145 bash
12 no-host configure.ocaml 391,772 0 0 0 5,112 0 1,937 137 dash
20 no-host configure.ocaml 644,556 0 0 0 5,112 0 1,858 191 osh-cpython
28 no-host configure.ocaml 412,792 0 0 0 5,120 0 1,933 164 osh-native
36 no-host configure.ocaml 412,729 0 0 0 5,120 0 1,935 175 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,941 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,953 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,902 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,091,297 0 0 0 42,400 0 18,563 1,065 bash
11 no-host configure.util-linux 2,260,760 2 0 0 42,584 0 17,421 1,034 dash
19 no-host configure.util-linux 5,366,134 7 0 0 39,136 0 16,983 1,258 osh-cpython
27 no-host configure.util-linux 1,998,976 0 0 0 39,120 0 17,000 933 osh-native
35 no-host configure.util-linux 1,992,876 0 0 0 39,136 0 17,051 1,167 osh-native-souffle
6 no-host configure.yash 256,224 0 0 0 4,120 0 866 103 bash
14 no-host configure.yash 245,165 0 0 0 3,720 0 867 88 dash
22 no-host configure.yash 386,889 0 0 0 3,728 0 855 104 osh-cpython
30 no-host configure.yash 257,180 0 0 0 3,736 0 850 82 osh-native
38 no-host configure.yash 257,330 0 0 0 3,736 0 849 83 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,949 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c2438faf
dash dash-0ebcf347
osh-cpython osh-4f894946
osh-native osh-b87a08f3
osh-native-souffle osh-a0fba59c
host label host id
no-host no-host-556df3ee