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 9 472 22 21 24.18 1.14
bin-true no-host 674 543 2,289 818 814 3.40 1.21
configure.cpython no-host 15,109 15,176 29,314 15,369 15,535 1.94 1.02
configure.ocaml no-host 3,811 3,745 4,692 3,859 3,836 1.23 1.01
configure.tcc no-host 48 42 206 50 49 4.32 1.04
configure.util-linux no-host 14,053 14,945 31,798 14,574 14,462 2.26 1.04
configure.yash no-host 1,828 1,782 2,489 1,852 1,838 1.36 1.01
hello-world no-host 2 1 58 3 3 37.08 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,566 1,109 23,525 3,196 3,137 9.17 1.25
bin-true no-host 105,445 66,454 763,122 126,122 126,137 7.24 1.20
configure.cpython no-host 2,214,432 2,238,251 6,186,428 2,223,753 2,208,813 2.79 1.00
configure.ocaml no-host 410,508 391,608 643,939 412,961 412,249 1.57 1.01
configure.tcc no-host 6,556 5,499 23,901 6,932 6,918 3.65 1.06
configure.util-linux no-host 2,093,364 2,265,113 5,331,350 1,997,676 1,988,071 2.55 0.95
configure.yash no-host 256,617 243,552 385,567 258,099 257,380 1.50 1.01
hello-world no-host 155 80 3,961 344 337 25.55 2.22

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.0 8.5 5.10 2.03
bin-true no-host 3.0 1.6 18.4 8.0 7.7 6.10 2.65
configure.cpython no-host 27.4 27.4 27.5 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.5 24.4 24.2 1.01 1.01
hello-world no-host 2.9 1.4 18.3 6.3 5.9 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 818 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,369 1 65 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,574 3 64 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,859 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 50 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,852 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 814 1 2 2.6 7.7 153,753 12,119 2,833 8,744 76,326 68,683 3,008 3 50,000 0
configure.cpython no-host 15,535 2 64 14.9 27.5 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,462 3 63 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,836 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,838 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.5 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 20 14 6 4.5 bash
15 no-host abuild-print-help 9 8 2 3.4 dash
23 no-host abuild-print-help 472 430 44 22.7 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 21 19 3 8.5 osh-native-souffle
1 no-host bin-true 674 495 211 3.0 bash
9 no-host bin-true 543 415 138 1.6 dash
17 no-host bin-true 2,289 1,466 1,089 18.4 osh-cpython
25 no-host bin-true 818 574 260 8.0 osh-native
33 no-host bin-true 814 565 264 7.7 osh-native-souffle
2 no-host configure.cpython 15,109 9,155 6,357 27.4 bash
10 no-host configure.cpython 15,176 9,084 6,508 27.4 dash
18 no-host configure.cpython 29,314 17,753 13,470 27.5 osh-cpython
26 no-host configure.cpython 15,369 9,049 6,588 27.4 osh-native
34 no-host configure.cpython 15,535 9,138 6,521 27.5 osh-native-souffle
4 no-host configure.ocaml 3,811 1,640 1,211 20.6 bash
12 no-host configure.ocaml 3,745 1,673 1,092 20.4 dash
20 no-host configure.ocaml 4,692 2,256 1,643 20.6 osh-cpython
28 no-host configure.ocaml 3,859 1,681 1,217 20.6 osh-native
36 no-host configure.ocaml 3,836 1,646 1,227 20.6 osh-native-souffle
5 no-host configure.tcc 48 23 25 19.4 bash
13 no-host configure.tcc 42 27 15 19.3 dash
21 no-host configure.tcc 206 145 64 19.4 osh-cpython
29 no-host configure.tcc 50 30 20 19.3 osh-native
37 no-host configure.tcc 49 35 15 19.3 osh-native-souffle
3 no-host configure.util-linux 14,053 8,824 5,705 30.1 bash
11 no-host configure.util-linux 14,945 9,181 6,255 30.1 dash
19 no-host configure.util-linux 31,798 21,484 11,411 30.1 osh-cpython
27 no-host configure.util-linux 14,574 8,993 5,759 30.1 osh-native
35 no-host configure.util-linux 14,462 8,700 5,952 30.3 osh-native-souffle
6 no-host configure.yash 1,828 1,103 735 24.2 bash
14 no-host configure.yash 1,782 991 794 24.2 dash
22 no-host configure.yash 2,489 1,527 1,005 24.5 osh-cpython
30 no-host configure.yash 1,852 1,047 809 24.4 osh-native
38 no-host configure.yash 1,838 1,015 827 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 24 33 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,566 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,525 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,196 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,137 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,445 0 0 0 8 0 1,995 55 bash
9 no-host bin-true 66,454 0 0 0 8 0 1,983 51 dash
17 no-host bin-true 763,122 0 0 0 8 0 1,997 126 osh-cpython
25 no-host bin-true 126,122 0 0 0 16 0 1,989 129 osh-native
33 no-host bin-true 126,137 0 0 0 16 0 1,987 60 osh-native-souffle
2 no-host configure.cpython 2,214,432 0 0 0 32,928 0 14,492 929 bash
10 no-host configure.cpython 2,238,251 0 0 0 32,992 0 14,675 1,226 dash
18 no-host configure.cpython 6,186,428 1 0 0 27,512 0 13,234 1,073 osh-cpython
26 no-host configure.cpython 2,223,753 0 0 0 27,520 0 13,177 962 osh-native
34 no-host configure.cpython 2,208,813 1 0 0 27,520 0 13,309 945 osh-native-souffle
4 no-host configure.ocaml 410,508 0 0 0 5,120 0 1,951 156 bash
12 no-host configure.ocaml 391,608 0 0 0 5,112 0 1,939 160 dash
20 no-host configure.ocaml 643,939 0 0 0 5,112 0 1,854 158 osh-cpython
28 no-host configure.ocaml 412,961 0 0 0 5,120 0 1,928 157 osh-native
36 no-host configure.ocaml 412,249 0 0 0 5,120 0 1,928 140 osh-native-souffle
5 no-host configure.tcc 6,556 0 0 0 104 0 47 3 bash
13 no-host configure.tcc 5,499 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,901 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,932 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,918 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 2,093,364 0 0 0 42,400 0 18,558 937 bash
11 no-host configure.util-linux 2,265,113 0 0 0 42,584 0 17,486 1,046 dash
19 no-host configure.util-linux 5,331,350 13 0 0 39,112 0 16,985 1,232 osh-cpython
27 no-host configure.util-linux 1,997,676 0 0 0 39,120 0 17,086 1,077 osh-native
35 no-host configure.util-linux 1,988,071 0 0 0 39,136 0 16,958 1,010 osh-native-souffle
6 no-host configure.yash 256,617 0 0 0 4,120 0 870 74 bash
14 no-host configure.yash 243,552 0 0 0 3,720 0 866 82 dash
22 no-host configure.yash 385,567 0 0 0 3,728 0 853 84 osh-cpython
30 no-host configure.yash 258,099 0 0 0 3,736 0 848 85 osh-native
38 no-host configure.yash 257,380 0 0 0 3,736 0 851 89 osh-native-souffle
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,961 0 0 0 8 0 7 8 osh-cpython
24 no-host hello-world 344 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-097932de
dash dash-0ebcf347
osh-cpython osh-c595b47b
osh-native osh-9ecd29a1
osh-native-souffle osh-94031bab
host label host id
no-host no-host-556df3ee