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 9 480 21 21 25.25 1.12
bin-true no-host 645 531 2,382 794 778 3.69 1.23
configure.cpython no-host 14,557 14,635 28,567 14,818 14,772 1.96 1.02
configure.ocaml no-host 3,763 3,682 4,635 3,742 3,736 1.23 0.99
configure.tcc no-host 46 40 205 48 47 4.43 1.03
configure.util-linux no-host 13,582 14,492 31,259 13,944 13,905 2.30 1.03
configure.yash no-host 1,780 1,734 2,437 1,783 1,783 1.37 1.00
hello-world no-host 1 1 56 3 3 42.44 2.17

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,524 1,077 25,170 3,163 3,100 9.97 1.25
bin-true no-host 104,280 65,442 810,628 127,161 125,206 7.77 1.22
configure.cpython no-host 1,995,014 2,029,749 6,095,330 2,013,106 2,003,430 3.06 1.01
configure.ocaml no-host 373,042 353,647 615,625 376,742 375,881 1.65 1.01
configure.tcc no-host 6,098 5,005 23,966 6,504 6,473 3.93 1.07
configure.util-linux no-host 1,918,413 2,072,363 5,277,186 1,821,823 1,814,366 2.75 0.95
configure.yash no-host 233,777 222,246 369,157 235,603 234,593 1.58 1.01
hello-world no-host 146 76 3,971 349 340 27.20 2.39

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.9 9.2 8.5 5.13 2.06
bin-true no-host 2.9 1.3 18.7 8.3 7.9 6.47 2.86
configure.cpython no-host 29.3 29.2 29.2 29.3 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.5 22.6 22.4 0.99 1.00
configure.tcc no-host 19.6 19.7 19.7 19.8 19.6 1.00 1.01
configure.util-linux no-host 30.2 30.3 30.3 30.3 30.3 1.01 1.01
configure.yash no-host 26.4 26.4 26.3 26.5 26.3 1.00 1.01
hello-world no-host 2.9 1.4 18.4 6.4 6.0 6.38 2.23

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.3 6.4 3,812 3,812 0 702 1,873 1,237 2 0 50,000 0
bin-true no-host 794 1 2 2.6 8.3 156,779 15,418 2,905 8,754 77,340 70,685 3,008 3 50,000 0
configure.cpython no-host 14,818 1 67 15.5 29.3 1,785,020 30,563 28,530 91,507 886,577 806,936 25,736 61 50,000 0
configure.util-linux no-host 13,944 3 63 21.6 30.3 2,709,221 53,765 65,729 114,374 1,295,040 1,299,807 32,241 41 131,458 1
configure.ocaml no-host 3,742 1 2 2.6 22.6 149,866 11,182 5,225 7,735 70,877 71,254 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.8 30,582 30,582 0 1,544 14,639 14,399 271 0 50,000 0
configure.yash no-host 1,783 1 2 2.6 26.5 139,888 8,049 6,704 6,399 68,342 65,147 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,344 64,423 42,631 4,546 54,465 57,333 277 3 85,262 1
hello-world no-host 3 0 0 0.3 6.0 3,811 3,811 0 703 1,873 1,235 2 0 50,000 0
bin-true no-host 778 1 2 2.6 7.9 156,778 15,413 2,900 8,755 77,340 70,683 3,008 3 50,000 0
configure.cpython no-host 14,772 2 70 15.5 29.2 1,785,019 30,550 28,525 91,508 886,577 806,934 25,736 61 50,000 0
configure.util-linux no-host 13,905 3 64 21.6 30.3 2,709,221 53,742 65,724 114,376 1,295,040 1,299,805 32,241 41 131,448 1
configure.ocaml no-host 3,736 1 2 2.6 22.4 149,866 11,177 5,220 7,737 70,877 71,252 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,582 30,582 0 1,546 14,639 14,397 271 0 50,000 0
configure.yash no-host 1,783 1 2 2.6 26.3 139,888 8,038 6,693 6,401 68,342 65,145 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,343 64,418 42,626 4,547 54,465 57,331 277 3 85,252 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 10 4.5 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 480 417 67 22.9 osh-cpython
31 no-host abuild-print-help 21 13 9 9.2 osh-native
39 no-host abuild-print-help 21 12 9 8.5 osh-native-souffle
1 no-host bin-true 645 308 369 2.9 bash
9 no-host bin-true 531 277 266 1.3 dash
17 no-host bin-true 2,382 828 1,814 18.7 osh-cpython
25 no-host bin-true 794 287 524 8.3 osh-native
33 no-host bin-true 778 297 499 7.9 osh-native-souffle
2 no-host configure.cpython 14,557 6,503 8,462 29.3 bash
10 no-host configure.cpython 14,635 6,613 8,460 29.2 dash
18 no-host configure.cpython 28,567 14,258 16,188 29.2 osh-cpython
26 no-host configure.cpython 14,818 6,474 8,627 29.3 osh-native
34 no-host configure.cpython 14,772 6,598 8,454 29.2 osh-native-souffle
4 no-host configure.ocaml 3,763 1,339 1,455 22.6 bash
12 no-host configure.ocaml 3,682 1,307 1,395 22.6 dash
20 no-host configure.ocaml 4,635 1,867 1,982 22.5 osh-cpython
28 no-host configure.ocaml 3,742 1,308 1,474 22.6 osh-native
36 no-host configure.ocaml 3,736 1,337 1,438 22.4 osh-native-souffle
5 no-host configure.tcc 46 25 22 19.6 bash
13 no-host configure.tcc 40 21 19 19.7 dash
21 no-host configure.tcc 205 144 65 19.7 osh-cpython
29 no-host configure.tcc 48 24 24 19.8 osh-native
37 no-host configure.tcc 47 21 26 19.6 osh-native-souffle
3 no-host configure.util-linux 13,582 5,805 8,255 30.2 bash
11 no-host configure.util-linux 14,492 5,893 9,109 30.3 dash
19 no-host configure.util-linux 31,259 17,884 14,452 30.3 osh-cpython
27 no-host configure.util-linux 13,944 5,591 8,575 30.3 osh-native
35 no-host configure.util-linux 13,905 5,584 8,524 30.3 osh-native-souffle
6 no-host configure.yash 1,780 886 904 26.4 bash
14 no-host configure.yash 1,734 885 854 26.4 dash
22 no-host configure.yash 2,437 1,374 1,106 26.3 osh-cpython
30 no-host configure.yash 1,783 892 895 26.5 osh-native
38 no-host configure.yash 1,783 907 882 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 32 24 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.4 osh-native
32 no-host hello-world 3 1 2 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,524 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,077 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 25,170 0 0 0 8 0 45 9 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,100 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,280 0 0 0 8 0 1,983 63 bash
9 no-host bin-true 65,442 0 0 0 8 0 1,989 154 dash
17 no-host bin-true 810,628 0 0 0 8 0 1,977 131 osh-cpython
25 no-host bin-true 127,161 0 0 0 16 0 1,978 114 osh-native
33 no-host bin-true 125,206 0 0 0 16 0 1,968 112 osh-native-souffle
2 no-host configure.cpython 1,995,014 0 0 0 32,928 0 14,318 1,120 bash
10 no-host configure.cpython 2,029,749 0 0 0 32,992 0 14,349 1,194 dash
18 no-host configure.cpython 6,095,330 0 0 0 27,512 0 13,078 1,261 osh-cpython
26 no-host configure.cpython 2,013,106 0 0 0 27,520 0 13,147 1,199 osh-native
34 no-host configure.cpython 2,003,430 0 0 0 27,520 0 13,089 1,084 osh-native-souffle
4 no-host configure.ocaml 373,042 0 0 0 5,120 0 1,952 189 bash
12 no-host configure.ocaml 353,647 0 0 0 5,112 0 1,927 173 dash
20 no-host configure.ocaml 615,625 0 0 0 5,112 0 1,845 215 osh-cpython
28 no-host configure.ocaml 376,742 0 0 0 5,120 0 1,919 192 osh-native
36 no-host configure.ocaml 375,881 0 0 0 5,120 0 1,928 206 osh-native-souffle
5 no-host configure.tcc 6,098 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,005 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,966 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,504 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,473 0 0 0 104 0 46 1 osh-native-souffle
3 no-host configure.util-linux 1,918,413 1 0 0 42,400 0 18,425 1,287 bash
11 no-host configure.util-linux 2,072,363 0 0 0 42,584 0 17,356 1,417 dash
19 no-host configure.util-linux 5,277,186 5 0 0 39,112 0 17,011 1,235 osh-cpython
27 no-host configure.util-linux 1,821,823 0 0 0 39,120 0 17,107 1,192 osh-native
35 no-host configure.util-linux 1,814,366 0 0 0 39,128 0 16,991 1,121 osh-native-souffle
6 no-host configure.yash 233,777 0 0 0 4,120 0 866 102 bash
14 no-host configure.yash 222,246 0 0 0 3,720 0 869 92 dash
22 no-host configure.yash 369,157 0 0 0 3,728 0 858 116 osh-cpython
30 no-host configure.yash 235,603 0 0 0 3,736 0 849 89 osh-native
38 no-host configure.yash 234,593 0 0 0 3,736 0 847 99 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,971 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-aa00bde2
dash dash-0ebcf347
osh-cpython osh-6cf003c6
osh-native osh-0d8ab44e
osh-native-souffle osh-c5b1367b
host label host id
no-host no-host-e4839999