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 19 10 474 22 21 24.83 1.15
bin-true no-host 688 541 2,307 814 805 3.35 1.18
configure.cpython no-host 15,077 15,086 29,038 15,537 15,505 1.93 1.03
configure.ocaml no-host 3,811 3,751 4,680 3,905 3,824 1.23 1.02
configure.tcc no-host 48 42 207 49 49 4.35 1.03
configure.util-linux no-host 14,054 14,929 31,582 14,795 14,368 2.25 1.05
configure.yash no-host 1,820 1,771 2,536 1,832 1,825 1.39 1.01
hello-world no-host 2 1 57 3 3 37.88 1.92

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,550 1,108 23,656 3,163 3,121 9.28 1.24
bin-true no-host 107,378 66,449 781,944 127,191 124,159 7.28 1.18
configure.cpython no-host 2,218,490 2,241,802 6,225,524 2,218,783 2,217,972 2.81 1.00
configure.ocaml no-host 410,743 391,642 648,254 412,729 412,527 1.58 1.00
configure.tcc no-host 6,567 5,469 24,020 6,930 6,899 3.66 1.06
configure.util-linux no-host 2,102,368 2,260,133 5,351,090 1,994,757 1,994,255 2.55 0.95
configure.yash no-host 256,035 244,556 389,390 258,243 257,575 1.52 1.01
hello-world no-host 151 82 3,990 341 337 26.42 2.26

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.5 22.6 9.0 8.7 5.07 2.03
bin-true no-host 2.9 1.4 18.2 8.1 7.5 6.33 2.82
configure.cpython no-host 27.3 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.4 20.6 0.99 0.99
configure.tcc no-host 19.3 19.3 19.1 19.3 19.3 0.99 1.00
configure.util-linux no-host 30.0 30.0 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 24.2 1.00 1.00
hello-world no-host 2.8 1.4 18.1 6.2 5.9 6.58 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,790 3,790 0 694 1,862 1,234 2 0 50,000 0
bin-true no-host 814 1 2 2.6 8.1 153,754 12,330 2,895 8,743 76,326 68,685 3,008 3 50,000 0
configure.cpython no-host 15,537 1 66 14.9 27.4 1,771,755 49,613 28,520 85,415 878,119 808,221 25,733 60 50,000 0
configure.util-linux no-host 14,795 3 66 21.2 30.1 2,702,521 53,774 65,699 108,691 1,290,644 1,303,186 32,239 41 131,398 1
configure.ocaml no-host 3,905 1 2 2.6 20.4 150,088 11,120 5,215 7,508 70,973 71,607 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,518 14,645 14,431 271 0 50,000 0
configure.yash no-host 1,832 1 2 2.5 24.4 139,420 8,032 6,694 5,989 67,946 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,300 64,411 42,621 4,532 54,440 57,328 277 3 85,242 1
hello-world no-host 3 0 0 0.2 5.9 3,789 3,789 0 695 1,862 1,232 2 0 50,000 0
bin-true no-host 805 1 2 2.6 7.5 153,753 12,119 2,833 8,744 76,326 68,683 3,008 3 50,000 0
configure.cpython no-host 15,505 1 62 14.9 27.4 1,771,754 49,071 28,458 85,416 878,119 808,219 25,733 60 50,000 0
configure.util-linux no-host 14,368 3 61 21.2 30.3 2,702,521 53,701 65,657 108,693 1,290,644 1,303,184 32,239 41 131,314 1
configure.ocaml no-host 3,824 1 2 2.6 20.6 150,088 11,058 5,153 7,510 70,973 71,605 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,520 14,645 14,429 271 0 50,000 0
configure.yash no-host 1,825 1 2 2.5 24.2 139,420 7,970 6,632 5,991 67,946 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,299 64,349 42,559 4,533 54,440 57,326 277 3 85,118 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 19 17 2 4.5 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 474 435 42 22.6 osh-cpython
31 no-host abuild-print-help 22 17 5 9.0 osh-native
39 no-host abuild-print-help 21 14 8 8.7 osh-native-souffle
1 no-host bin-true 688 501 216 2.9 bash
9 no-host bin-true 541 424 126 1.4 dash
17 no-host bin-true 2,307 1,450 1,116 18.2 osh-cpython
25 no-host bin-true 814 563 266 8.1 osh-native
33 no-host bin-true 805 551 267 7.5 osh-native-souffle
2 no-host configure.cpython 15,077 9,138 6,333 27.3 bash
10 no-host configure.cpython 15,086 9,158 6,347 27.3 dash
18 no-host configure.cpython 29,038 17,647 13,276 27.4 osh-cpython
26 no-host configure.cpython 15,537 9,026 6,765 27.4 osh-native
34 no-host configure.cpython 15,505 9,064 6,568 27.4 osh-native-souffle
4 no-host configure.ocaml 3,811 1,686 1,165 20.6 bash
12 no-host configure.ocaml 3,751 1,551 1,217 20.6 dash
20 no-host configure.ocaml 4,680 2,285 1,612 20.4 osh-cpython
28 no-host configure.ocaml 3,905 1,604 1,335 20.4 osh-native
36 no-host configure.ocaml 3,824 1,608 1,254 20.6 osh-native-souffle
5 no-host configure.tcc 48 30 18 19.3 bash
13 no-host configure.tcc 42 31 11 19.3 dash
21 no-host configure.tcc 207 154 56 19.1 osh-cpython
29 no-host configure.tcc 49 32 18 19.3 osh-native
37 no-host configure.tcc 49 31 18 19.3 osh-native-souffle
3 no-host configure.util-linux 14,054 8,770 5,742 30.0 bash
11 no-host configure.util-linux 14,929 9,098 6,320 30.0 dash
19 no-host configure.util-linux 31,582 20,924 11,755 30.1 osh-cpython
27 no-host configure.util-linux 14,795 8,928 6,050 30.1 osh-native
35 no-host configure.util-linux 14,368 8,598 5,955 30.3 osh-native-souffle
6 no-host configure.yash 1,820 1,022 808 24.4 bash
14 no-host configure.yash 1,771 1,002 772 24.2 dash
22 no-host configure.yash 2,536 1,547 1,033 24.4 osh-cpython
30 no-host configure.yash 1,832 1,058 778 24.4 osh-native
38 no-host configure.yash 1,825 1,003 827 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 29 28 18.1 osh-cpython
24 no-host hello-world 3 0 3 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,550 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,656 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,163 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,121 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,378 0 0 0 8 0 1,991 278 bash
9 no-host bin-true 66,449 0 0 0 8 0 1,988 94 dash
17 no-host bin-true 781,944 0 0 0 8 0 1,999 145 osh-cpython
25 no-host bin-true 127,191 0 0 0 16 0 1,981 51 osh-native
33 no-host bin-true 124,159 0 0 0 16 0 1,987 69 osh-native-souffle
2 no-host configure.cpython 2,218,490 0 0 0 32,928 0 14,502 1,185 bash
10 no-host configure.cpython 2,241,802 0 0 0 32,992 0 14,609 953 dash
18 no-host configure.cpython 6,225,524 0 0 0 27,512 0 13,202 1,066 osh-cpython
26 no-host configure.cpython 2,218,783 0 0 0 27,520 0 13,318 1,047 osh-native
34 no-host configure.cpython 2,217,972 1 0 0 27,520 0 13,214 1,056 osh-native-souffle
4 no-host configure.ocaml 410,743 0 0 0 5,120 0 1,949 183 bash
12 no-host configure.ocaml 391,642 0 0 0 5,112 0 1,942 153 dash
20 no-host configure.ocaml 648,254 0 0 0 5,112 0 1,859 165 osh-cpython
28 no-host configure.ocaml 412,729 0 0 0 5,120 0 1,923 169 osh-native
36 no-host configure.ocaml 412,527 0 0 0 5,120 0 1,933 166 osh-native-souffle
5 no-host configure.tcc 6,567 0 0 0 104 0 48 1 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,020 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,930 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,899 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,102,368 0 0 0 42,400 0 18,487 1,030 bash
11 no-host configure.util-linux 2,260,133 1 0 0 42,584 0 17,465 1,200 dash
19 no-host configure.util-linux 5,351,090 15 0 0 39,128 0 16,947 1,335 osh-cpython
27 no-host configure.util-linux 1,994,757 2 0 0 39,128 0 16,959 968 osh-native
35 no-host configure.util-linux 1,994,255 0 0 0 39,136 0 16,978 1,009 osh-native-souffle
6 no-host configure.yash 256,035 0 0 0 4,120 0 868 78 bash
14 no-host configure.yash 244,556 0 0 0 3,720 0 867 71 dash
22 no-host configure.yash 389,390 0 0 0 3,728 0 856 86 osh-cpython
30 no-host configure.yash 258,243 0 0 0 3,736 0 850 74 osh-native
38 no-host configure.yash 257,575 0 0 0 3,736 0 849 62 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,990 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-43b73341
dash dash-0ebcf347
osh-cpython osh-642baa4b
osh-native osh-db5c9d1d
osh-native-souffle osh-622853ae
host label host id
no-host no-host-556df3ee