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 470 22 21 24.98 1.18
bin-true no-host 666 545 2,269 816 812 3.41 1.22
configure.cpython no-host 15,241 15,275 29,004 15,467 15,606 1.90 1.01
configure.ocaml no-host 3,826 3,775 4,694 3,862 3,870 1.23 1.01
configure.tcc no-host 48 42 204 49 49 4.30 1.04
configure.util-linux no-host 14,199 15,019 31,394 14,565 14,479 2.21 1.03
configure.yash no-host 1,842 1,786 2,468 1,847 1,855 1.34 1.00
hello-world no-host 1 1 56 3 3 37.99 1.89

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,526 1,116 23,745 3,181 3,138 9.40 1.26
bin-true no-host 103,338 65,396 770,398 127,182 126,204 7.46 1.23
configure.cpython no-host 2,224,610 2,243,378 6,221,604 2,224,409 2,221,367 2.80 1.00
configure.ocaml no-host 410,928 390,952 646,623 412,970 412,553 1.57 1.00
configure.tcc no-host 6,575 5,476 23,954 6,960 6,880 3.64 1.06
configure.util-linux no-host 2,099,738 2,262,357 5,367,724 1,999,882 1,990,258 2.56 0.95
configure.yash no-host 256,018 243,562 387,225 256,734 257,795 1.51 1.00
hello-world no-host 155 82 3,957 339 336 25.53 2.19

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 8.9 8.8 5.25 2.06
bin-true no-host 3.0 1.4 18.4 8.0 7.6 6.10 2.65
configure.cpython no-host 27.1 27.1 27.4 27.4 27.3 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.3 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 24.2 1.00 1.01
hello-world no-host 2.9 1.4 18.4 6.2 5.9 6.38 2.14

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 816 1 2 2.6 8.0 153,754 12,330 2,895 8,743 76,326 68,685 3,008 3 50,000 0
configure.cpython no-host 15,467 1 62 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,565 3 63 21.2 30.3 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,862 1 2 2.6 20.6 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.4 30,594 30,594 0 1,518 14,645 14,431 271 0 50,000 0
configure.yash no-host 1,847 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 8.9 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 812 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,606 1 62 14.9 27.3 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,479 3 61 21.2 30.0 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,870 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,855 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.8 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 10 9 4.3 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 470 440 33 22.7 osh-cpython
31 no-host abuild-print-help 22 15 8 8.9 osh-native
39 no-host abuild-print-help 21 20 1 8.8 osh-native-souffle
1 no-host bin-true 666 494 201 3.0 bash
9 no-host bin-true 545 426 129 1.4 dash
17 no-host bin-true 2,269 1,515 1,019 18.4 osh-cpython
25 no-host bin-true 816 584 249 8.0 osh-native
33 no-host bin-true 812 574 252 7.6 osh-native-souffle
2 no-host configure.cpython 15,241 9,102 6,542 27.1 bash
10 no-host configure.cpython 15,275 9,292 6,417 27.1 dash
18 no-host configure.cpython 29,004 17,491 13,391 27.4 osh-cpython
26 no-host configure.cpython 15,467 9,165 6,572 27.4 osh-native
34 no-host configure.cpython 15,606 9,090 6,649 27.3 osh-native-souffle
4 no-host configure.ocaml 3,826 1,711 1,154 20.6 bash
12 no-host configure.ocaml 3,775 1,660 1,134 20.6 dash
20 no-host configure.ocaml 4,694 2,352 1,553 20.6 osh-cpython
28 no-host configure.ocaml 3,862 1,743 1,157 20.6 osh-native
36 no-host configure.ocaml 3,870 1,658 1,248 20.6 osh-native-souffle
5 no-host configure.tcc 48 37 11 19.3 bash
13 no-host configure.tcc 42 28 14 19.3 dash
21 no-host configure.tcc 204 157 50 19.4 osh-cpython
29 no-host configure.tcc 49 30 19 19.4 osh-native
37 no-host configure.tcc 49 33 16 19.4 osh-native-souffle
3 no-host configure.util-linux 14,199 8,921 5,761 30.1 bash
11 no-host configure.util-linux 15,019 9,078 6,445 30.1 dash
19 no-host configure.util-linux 31,394 20,776 11,702 30.1 osh-cpython
27 no-host configure.util-linux 14,565 8,827 5,942 30.3 osh-native
35 no-host configure.util-linux 14,479 8,698 5,983 30.0 osh-native-souffle
6 no-host configure.yash 1,842 1,063 787 24.2 bash
14 no-host configure.yash 1,786 1,034 755 24.4 dash
22 no-host configure.yash 2,468 1,413 1,098 24.2 osh-cpython
30 no-host configure.yash 1,847 1,044 808 24.4 osh-native
38 no-host configure.yash 1,855 1,079 780 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 35 21 18.4 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,526 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,116 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,745 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,181 0 0 0 16 0 39 7 osh-native
39 no-host abuild-print-help 3,138 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 103,338 0 0 0 8 0 1,992 45 bash
9 no-host bin-true 65,396 0 0 0 8 0 1,987 87 dash
17 no-host bin-true 770,398 0 0 0 8 0 1,985 118 osh-cpython
25 no-host bin-true 127,182 0 0 0 16 0 1,990 129 osh-native
33 no-host bin-true 126,204 0 0 0 16 0 1,988 144 osh-native-souffle
2 no-host configure.cpython 2,224,610 0 0 0 32,928 0 14,478 1,012 bash
10 no-host configure.cpython 2,243,378 0 0 0 32,992 0 14,590 979 dash
18 no-host configure.cpython 6,221,604 0 0 0 27,512 0 13,284 1,279 osh-cpython
26 no-host configure.cpython 2,224,409 0 0 0 27,520 0 13,147 945 osh-native
34 no-host configure.cpython 2,221,367 0 0 0 27,520 0 13,260 946 osh-native-souffle
4 no-host configure.ocaml 410,928 0 0 0 5,120 0 1,947 145 bash
12 no-host configure.ocaml 390,952 0 0 0 5,112 0 1,907 147 dash
20 no-host configure.ocaml 646,623 0 0 0 5,112 0 1,859 307 osh-cpython
28 no-host configure.ocaml 412,970 0 0 0 5,120 0 1,921 191 osh-native
36 no-host configure.ocaml 412,553 0 0 0 5,120 0 1,926 173 osh-native-souffle
5 no-host configure.tcc 6,575 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,954 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,960 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,880 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,099,738 1 0 0 42,400 0 18,611 1,131 bash
11 no-host configure.util-linux 2,262,357 0 0 0 42,584 0 17,430 1,098 dash
19 no-host configure.util-linux 5,367,724 3 0 0 39,112 0 16,961 1,233 osh-cpython
27 no-host configure.util-linux 1,999,882 0 0 0 39,128 0 16,982 1,044 osh-native
35 no-host configure.util-linux 1,990,258 0 0 0 39,136 0 16,957 1,041 osh-native-souffle
6 no-host configure.yash 256,018 0 0 0 4,120 0 877 89 bash
14 no-host configure.yash 243,562 0 0 0 3,720 0 864 70 dash
22 no-host configure.yash 387,225 0 0 0 3,728 0 854 107 osh-cpython
30 no-host configure.yash 256,734 0 0 0 3,736 0 849 67 osh-native
38 no-host configure.yash 257,795 0 0 0 3,736 0 850 95 osh-native-souffle
0 no-host hello-world 155 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,957 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 339 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-477a8f0d
dash dash-0ebcf347
osh-cpython osh-c922a7d1
osh-native osh-102b4923
osh-native-souffle osh-d0eadae2
host label host id
no-host no-host-556df3ee