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 21 9 460 22 22 21.43 1.03
bin-true no-host 641 542 2,259 808 801 3.52 1.26
configure.cpython no-host 14,770 14,850 28,517 15,028 15,111 1.93 1.02
configure.ocaml no-host 3,757 3,786 4,628 3,775 3,827 1.23 1.00
configure.tcc no-host 50 41 204 49 49 4.11 0.99
configure.util-linux no-host 13,802 14,840 30,869 14,171 14,108 2.24 1.03
configure.yash no-host 1,808 1,747 2,427 1,807 1,824 1.34 1.00
hello-world no-host 1 1 56 3 3 41.25 2.02

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,545 1,099 23,608 3,221 3,103 9.28 1.27
bin-true no-host 107,337 66,493 762,023 128,148 126,147 7.10 1.19
configure.cpython no-host 2,218,322 2,239,448 6,171,182 2,218,206 2,213,056 2.78 1.00
configure.ocaml no-host 410,407 391,255 642,659 412,614 411,704 1.57 1.01
configure.tcc no-host 6,582 5,487 23,888 6,939 6,925 3.63 1.05
configure.util-linux no-host 2,095,911 2,264,045 5,342,449 1,996,982 1,992,441 2.55 0.95
configure.yash no-host 256,704 244,724 386,814 258,332 256,560 1.51 1.01
hello-world no-host 154 83 3,957 346 338 25.69 2.25

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.3 3.4 22.7 9.0 8.7 5.25 2.09
bin-true no-host 3.0 1.4 18.5 8.1 7.6 6.14 2.70
configure.cpython no-host 27.3 27.3 27.3 27.4 27.4 1.00 1.01
configure.ocaml no-host 20.6 20.4 20.4 20.4 20.6 0.99 0.99
configure.tcc no-host 19.4 19.3 19.4 19.3 19.4 1.00 0.99
configure.util-linux no-host 30.0 30.3 30.1 29.9 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.1 24.5 24.2 0.99 1.01
hello-world no-host 2.9 1.4 18.3 6.3 6.0 6.33 2.18

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.3 3,790 3,790 0 694 1,862 1,234 2 0 50,000 0
bin-true no-host 808 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,028 1 58 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,171 2 57 21.2 29.9 2,702,521 45,808 65,719 108,691 1,290,644 1,303,186 32,239 41 131,438 1
configure.ocaml no-host 3,775 0 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,807 1 2 2.5 24.5 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 6.0 3,789 3,789 0 695 1,862 1,232 2 0 50,000 0
bin-true no-host 801 1 2 2.6 7.6 153,753 12,119 2,833 8,744 76,326 68,683 3,008 3 50,000 0
configure.cpython no-host 15,111 1 59 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,108 2 58 21.2 30.1 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,827 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.4 30,594 30,594 0 1,520 14,645 14,429 271 0 50,000 0
configure.yash no-host 1,824 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 22 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 21 10 9 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 460 411 52 22.7 osh-cpython
31 no-host abuild-print-help 22 15 8 9.0 osh-native
39 no-host abuild-print-help 22 16 6 8.7 osh-native-souffle
1 no-host bin-true 641 463 208 3.0 bash
9 no-host bin-true 542 420 130 1.4 dash
17 no-host bin-true 2,259 1,413 1,100 18.5 osh-cpython
25 no-host bin-true 808 569 254 8.1 osh-native
33 no-host bin-true 801 564 251 7.6 osh-native-souffle
2 no-host configure.cpython 14,770 8,960 6,198 27.3 bash
10 no-host configure.cpython 14,850 9,094 6,169 27.3 dash
18 no-host configure.cpython 28,517 17,130 13,209 27.3 osh-cpython
26 no-host configure.cpython 15,028 8,894 6,403 27.4 osh-native
34 no-host configure.cpython 15,111 8,729 6,523 27.4 osh-native-souffle
4 no-host configure.ocaml 3,757 1,574 1,222 20.6 bash
12 no-host configure.ocaml 3,786 1,604 1,201 20.4 dash
20 no-host configure.ocaml 4,628 2,231 1,611 20.4 osh-cpython
28 no-host configure.ocaml 3,775 1,680 1,134 20.4 osh-native
36 no-host configure.ocaml 3,827 1,680 1,182 20.6 osh-native-souffle
5 no-host configure.tcc 50 30 20 19.4 bash
13 no-host configure.tcc 41 23 18 19.3 dash
21 no-host configure.tcc 204 125 83 19.4 osh-cpython
29 no-host configure.tcc 49 29 21 19.3 osh-native
37 no-host configure.tcc 49 29 20 19.4 osh-native-souffle
3 no-host configure.util-linux 13,802 8,867 5,407 30.0 bash
11 no-host configure.util-linux 14,840 9,014 6,315 30.3 dash
19 no-host configure.util-linux 30,869 20,594 11,324 30.1 osh-cpython
27 no-host configure.util-linux 14,171 8,624 5,744 29.9 osh-native
35 no-host configure.util-linux 14,108 8,461 5,847 30.1 osh-native-souffle
6 no-host configure.yash 1,808 1,088 715 24.2 bash
14 no-host configure.yash 1,747 1,046 703 24.4 dash
22 no-host configure.yash 2,427 1,460 1,008 24.1 osh-cpython
30 no-host configure.yash 1,807 1,067 744 24.5 osh-native
38 no-host configure.yash 1,824 1,045 783 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 32 24 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 6.0 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,545 0 0 0 16 0 44 1 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,608 0 0 0 8 0 45 17 osh-cpython
31 no-host abuild-print-help 3,221 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,103 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 107,337 0 0 0 8 0 1,988 41 bash
9 no-host bin-true 66,493 0 0 0 8 0 1,983 36 dash
17 no-host bin-true 762,023 0 0 0 8 0 1,998 138 osh-cpython
25 no-host bin-true 128,148 0 0 0 16 0 1,990 105 osh-native
33 no-host bin-true 126,147 0 0 0 16 0 1,993 104 osh-native-souffle
2 no-host configure.cpython 2,218,322 0 0 0 32,928 0 14,514 939 bash
10 no-host configure.cpython 2,239,448 0 0 0 32,992 0 14,499 929 dash
18 no-host configure.cpython 6,171,182 1 0 0 27,512 0 13,273 1,280 osh-cpython
26 no-host configure.cpython 2,218,206 0 0 0 27,520 0 13,155 1,034 osh-native
34 no-host configure.cpython 2,213,056 0 0 0 27,520 0 13,235 899 osh-native-souffle
4 no-host configure.ocaml 410,407 0 0 0 5,120 0 1,948 180 bash
12 no-host configure.ocaml 391,255 0 0 0 5,112 0 1,898 136 dash
20 no-host configure.ocaml 642,659 0 0 0 5,112 0 1,855 191 osh-cpython
28 no-host configure.ocaml 412,614 0 0 0 5,120 0 1,928 164 osh-native
36 no-host configure.ocaml 411,704 0 0 0 5,120 0 1,926 213 osh-native-souffle
5 no-host configure.tcc 6,582 0 0 0 104 0 49 10 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,888 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,939 0 0 0 104 0 47 10 osh-native
37 no-host configure.tcc 6,925 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,095,911 0 0 0 42,400 0 18,569 1,160 bash
11 no-host configure.util-linux 2,264,045 1 0 0 42,584 0 17,476 1,062 dash
19 no-host configure.util-linux 5,342,449 14 0 0 39,120 0 16,930 1,228 osh-cpython
27 no-host configure.util-linux 1,996,982 1 0 0 39,120 0 16,964 1,062 osh-native
35 no-host configure.util-linux 1,992,441 0 0 0 39,128 0 16,957 972 osh-native-souffle
6 no-host configure.yash 256,704 0 0 0 4,120 0 868 107 bash
14 no-host configure.yash 244,724 0 0 0 3,720 0 869 93 dash
22 no-host configure.yash 386,814 0 0 0 3,728 0 855 98 osh-cpython
30 no-host configure.yash 258,332 0 0 0 3,736 0 846 72 osh-native
38 no-host configure.yash 256,560 0 0 0 3,736 0 850 74 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 1 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,957 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8763890d
dash dash-0ebcf347
osh-cpython osh-35d1d854
osh-native osh-18b4be6f
osh-native-souffle osh-62399849
host label host id
no-host no-host-556df3ee