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 482 22 21 25.65 1.16
bin-true no-host 661 533 2,415 800 787 3.65 1.21
configure.cpython no-host 14,947 14,988 29,150 15,144 14,906 1.95 1.01
configure.ocaml no-host 3,819 3,683 4,715 3,842 3,797 1.23 1.01
configure.tcc no-host 47 41 209 48 47 4.47 1.03
configure.util-linux no-host 13,917 14,632 32,174 14,321 13,911 2.31 1.03
configure.yash no-host 1,841 1,729 2,484 1,812 1,791 1.35 0.98
hello-world no-host 1 1 57 3 3 41.80 2.07

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,503 1,093 24,190 3,212 3,092 9.66 1.28
bin-true no-host 106,349 65,431 803,354 128,111 126,147 7.55 1.20
configure.cpython no-host 2,005,686 2,023,782 6,100,326 2,015,357 1,999,239 3.04 1.00
configure.ocaml no-host 373,375 354,042 616,687 376,577 376,067 1.65 1.01
configure.tcc no-host 6,077 5,014 24,018 6,515 6,460 3.95 1.07
configure.util-linux no-host 1,913,326 2,072,712 5,307,000 1,821,628 1,803,485 2.77 0.95
configure.yash no-host 232,262 221,791 369,139 235,645 235,340 1.59 1.01
hello-world no-host 149 78 3,963 347 338 26.60 2.33

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.9 9.2 8.5 5.29 2.12
bin-true no-host 2.9 1.4 18.3 8.1 7.6 6.34 2.82
configure.cpython no-host 29.3 29.3 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.7 19.6 19.6 19.5 0.99 0.99
configure.util-linux no-host 30.2 30.2 30.3 30.2 30.3 1.00 1.00
configure.yash no-host 26.4 26.5 26.4 26.4 26.3 1.00 1.00
hello-world no-host 2.8 1.6 18.4 6.3 5.9 6.69 2.29

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.3 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 800 1 2 2.6 8.1 156,772 15,414 2,901 8,752 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 15,144 2 72 15.5 29.2 1,785,013 30,559 28,526 91,505 887,089 806,419 25,736 61 50,000 0
configure.util-linux no-host 14,321 3 68 21.6 30.2 2,709,214 53,761 65,725 114,372 1,296,230 1,298,612 32,241 41 131,450 1
configure.ocaml no-host 3,842 1 2 2.6 22.6 149,859 11,178 5,221 7,733 70,879 71,247 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,575 30,575 0 1,542 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,812 1 2 2.6 26.4 139,881 8,045 6,700 6,397 68,350 65,134 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,337 64,419 42,627 4,544 54,462 57,331 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 787 1 2 2.6 7.6 156,771 15,409 2,896 8,753 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 14,906 1 67 15.4 29.2 1,785,012 30,546 28,521 91,506 887,089 806,417 25,736 61 50,000 0
configure.util-linux no-host 13,911 3 63 21.6 30.3 2,709,214 53,738 65,720 114,374 1,296,230 1,298,610 32,241 41 131,440 1
configure.ocaml no-host 3,797 1 2 2.6 22.6 149,859 11,173 5,216 7,735 70,879 71,245 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.5 30,575 30,575 0 1,544 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,791 1 2 2.6 26.3 139,881 8,034 6,689 6,399 68,350 65,132 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,336 64,414 42,622 4,545 54,462 57,329 277 3 85,244 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 11 8 4.3 bash
15 no-host abuild-print-help 9 6 4 3.4 dash
23 no-host abuild-print-help 482 428 57 22.9 osh-cpython
31 no-host abuild-print-help 22 12 10 9.2 osh-native
39 no-host abuild-print-help 21 13 9 8.5 osh-native-souffle
1 no-host bin-true 661 296 398 2.9 bash
9 no-host bin-true 533 286 257 1.4 dash
17 no-host bin-true 2,415 818 1,850 18.3 osh-cpython
25 no-host bin-true 800 296 519 8.1 osh-native
33 no-host bin-true 787 289 513 7.6 osh-native-souffle
2 no-host configure.cpython 14,947 6,745 8,632 29.3 bash
10 no-host configure.cpython 14,988 6,824 8,612 29.3 dash
18 no-host configure.cpython 29,150 14,508 16,567 29.2 osh-cpython
26 no-host configure.cpython 15,144 6,546 8,894 29.2 osh-native
34 no-host configure.cpython 14,906 6,487 8,705 29.2 osh-native-souffle
4 no-host configure.ocaml 3,819 1,355 1,500 22.6 bash
12 no-host configure.ocaml 3,683 1,306 1,400 22.6 dash
20 no-host configure.ocaml 4,715 1,905 2,032 22.6 osh-cpython
28 no-host configure.ocaml 3,842 1,376 1,507 22.6 osh-native
36 no-host configure.ocaml 3,797 1,345 1,492 22.6 osh-native-souffle
5 no-host configure.tcc 47 23 25 19.7 bash
13 no-host configure.tcc 41 22 19 19.7 dash
21 no-host configure.tcc 209 142 71 19.6 osh-cpython
29 no-host configure.tcc 48 19 30 19.6 osh-native
37 no-host configure.tcc 47 26 22 19.5 osh-native-souffle
3 no-host configure.util-linux 13,917 5,851 8,570 30.2 bash
11 no-host configure.util-linux 14,632 5,993 9,172 30.2 dash
19 no-host configure.util-linux 32,174 18,283 15,017 30.3 osh-cpython
27 no-host configure.util-linux 14,321 5,856 8,697 30.2 osh-native
35 no-host configure.util-linux 13,911 5,603 8,536 30.3 osh-native-souffle
6 no-host configure.yash 1,841 901 950 26.4 bash
14 no-host configure.yash 1,729 879 854 26.5 dash
22 no-host configure.yash 2,484 1,345 1,183 26.4 osh-cpython
30 no-host configure.yash 1,812 908 909 26.4 osh-native
38 no-host configure.yash 1,791 914 881 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 33 23 18.4 osh-cpython
24 no-host hello-world 3 1 2 6.3 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,503 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,190 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,212 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,092 0 0 0 16 0 38 2 osh-native-souffle
1 no-host bin-true 106,349 0 0 0 8 0 1,987 316 bash
9 no-host bin-true 65,431 0 0 0 8 0 1,966 136 dash
17 no-host bin-true 803,354 0 0 0 8 0 1,977 539 osh-cpython
25 no-host bin-true 128,111 0 0 0 16 0 1,964 187 osh-native
33 no-host bin-true 126,147 0 0 0 16 0 1,981 156 osh-native-souffle
2 no-host configure.cpython 2,005,686 0 0 0 32,928 0 14,242 1,194 bash
10 no-host configure.cpython 2,023,782 1 0 0 32,992 0 14,447 1,147 dash
18 no-host configure.cpython 6,100,326 0 0 0 27,512 0 13,030 1,183 osh-cpython
26 no-host configure.cpython 2,015,357 0 0 0 27,520 0 13,075 1,200 osh-native
34 no-host configure.cpython 1,999,239 0 0 0 27,520 0 13,040 1,134 osh-native-souffle
4 no-host configure.ocaml 373,375 0 0 0 5,120 0 1,954 182 bash
12 no-host configure.ocaml 354,042 0 0 0 5,112 0 1,933 188 dash
20 no-host configure.ocaml 616,687 0 0 0 5,112 0 1,847 225 osh-cpython
28 no-host configure.ocaml 376,577 0 0 0 5,120 0 1,922 194 osh-native
36 no-host configure.ocaml 376,067 0 0 0 5,120 0 1,913 177 osh-native-souffle
5 no-host configure.tcc 6,077 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,014 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,018 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,515 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,460 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,913,326 0 0 0 42,400 0 18,459 1,250 bash
11 no-host configure.util-linux 2,072,712 1 0 0 42,584 0 17,322 1,407 dash
19 no-host configure.util-linux 5,307,000 6 0 0 39,152 0 17,121 1,395 osh-cpython
27 no-host configure.util-linux 1,821,628 0 0 0 39,120 0 17,027 1,253 osh-native
35 no-host configure.util-linux 1,803,485 0 0 0 39,128 0 16,926 1,143 osh-native-souffle
6 no-host configure.yash 232,262 0 0 0 4,120 0 869 90 bash
14 no-host configure.yash 221,791 0 0 0 3,720 0 866 88 dash
22 no-host configure.yash 369,139 0 0 0 3,728 0 855 106 osh-cpython
30 no-host configure.yash 235,645 0 0 0 3,736 0 846 83 osh-native
38 no-host configure.yash 235,340 0 0 0 3,736 0 850 94 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,963 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 347 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-ef6afa67
dash dash-0ebcf347
osh-cpython osh-0fa124ef
osh-native osh-dc304bb2
osh-native-souffle osh-ac469657
host label host id
no-host no-host-e4839999