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 485 23 22 25.22 1.17
bin-true no-host 674 536 2,490 813 814 3.69 1.21
configure.cpython no-host 15,392 15,587 31,035 15,751 15,706 2.02 1.02
configure.ocaml no-host 3,893 3,862 4,806 3,929 3,911 1.23 1.01
configure.tcc no-host 48 42 206 49 49 4.29 1.03
configure.util-linux no-host 14,403 15,406 33,743 14,715 14,649 2.34 1.02
configure.yash no-host 1,892 1,857 2,559 1,883 1,888 1.35 1.00
hello-world no-host 1 1 55 3 3 38.94 2.09

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,518 1,135 22,982 3,192 3,104 9.13 1.27
bin-true no-host 106,357 66,416 761,841 127,128 127,473 7.16 1.20
configure.cpython no-host 2,000,112 2,023,840 5,950,173 1,997,261 1,990,411 2.97 1.00
configure.ocaml no-host 373,553 353,932 603,260 376,898 375,824 1.61 1.01
configure.tcc no-host 6,072 5,005 22,850 6,509 6,503 3.76 1.07
configure.util-linux no-host 1,905,923 2,079,351 5,126,040 1,803,323 1,809,223 2.69 0.95
configure.yash no-host 232,514 222,437 360,997 235,437 235,292 1.55 1.01
hello-world no-host 148 77 3,680 350 343 24.86 2.36

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 21.8 8.9 8.5 4.88 2.00
bin-true no-host 2.9 1.4 17.4 8.3 7.6 6.05 2.86
configure.cpython no-host 29.2 29.2 29.2 29.3 29.0 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.8 1.00 1.00
configure.tcc no-host 19.6 19.6 19.8 19.5 19.6 1.01 1.00
configure.util-linux no-host 30.3 30.2 30.5 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.4 26.4 26.3 26.3 1.00 1.00
hello-world no-host 2.8 1.4 17.3 6.0 5.9 6.29 2.19

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.0 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.3 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,751 2 69 15.0 29.3 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,715 3 68 21.3 30.3 2,703,426 42,745 65,812 109,643 1,320,611 1,273,172 27,391 41 131,624 1
configure.ocaml no-host 3,929 1 2 2.6 22.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.5 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,883 1 2 2.6 26.3 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 1
hello-world no-host 3 0 0 0.3 5.9 3,748 3,748 0 685 1,892 1,171 2 0 50,000 0
bin-true no-host 814 1 2 2.6 7.6 154,713 12,949 2,756 9,735 78,361 66,617 3,008 3 50,000 0
configure.cpython no-host 15,706 1 68 15.0 29.0 1,772,689 44,560 28,466 86,382 908,113 778,194 22,694 60 50,000 0
configure.util-linux no-host 14,649 3 69 21.3 30.3 2,703,426 44,646 65,749 109,645 1,320,611 1,273,170 27,391 41 131,498 1
configure.ocaml no-host 3,911 1 2 2.6 22.8 150,060 10,930 5,100 7,515 71,649 70,896 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.6 30,549 30,549 0 1,506 14,816 14,227 226 0 50,000 0
configure.yash no-host 1,888 1 2 2.6 26.3 139,717 7,899 6,558 6,322 70,321 63,074 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.5 116,291 64,409 42,619 4,556 54,561 57,174 270 3 85,238 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 9 4.5 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 485 425 64 21.8 osh-cpython
31 no-host abuild-print-help 23 15 8 8.9 osh-native
39 no-host abuild-print-help 22 10 12 8.5 osh-native-souffle
1 no-host bin-true 674 296 412 2.9 bash
9 no-host bin-true 536 287 260 1.4 dash
17 no-host bin-true 2,490 861 1,929 17.4 osh-cpython
25 no-host bin-true 813 297 532 8.3 osh-native
33 no-host bin-true 814 293 538 7.6 osh-native-souffle
2 no-host configure.cpython 15,392 6,794 9,035 29.2 bash
10 no-host configure.cpython 15,587 7,016 9,039 29.2 dash
18 no-host configure.cpython 31,035 15,613 17,511 29.2 osh-cpython
26 no-host configure.cpython 15,751 7,011 9,040 29.3 osh-native
34 no-host configure.cpython 15,706 6,934 8,941 29.0 osh-native-souffle
4 no-host configure.ocaml 3,893 1,383 1,554 22.6 bash
12 no-host configure.ocaml 3,862 1,363 1,522 22.5 dash
20 no-host configure.ocaml 4,806 1,955 2,075 22.6 osh-cpython
28 no-host configure.ocaml 3,929 1,345 1,624 22.6 osh-native
36 no-host configure.ocaml 3,911 1,338 1,611 22.8 osh-native-souffle
5 no-host configure.tcc 48 22 26 19.6 bash
13 no-host configure.tcc 42 20 22 19.6 dash
21 no-host configure.tcc 206 144 66 19.8 osh-cpython
29 no-host configure.tcc 49 27 23 19.5 osh-native
37 no-host configure.tcc 49 26 24 19.6 osh-native-souffle
3 no-host configure.util-linux 14,403 6,151 8,780 30.3 bash
11 no-host configure.util-linux 15,406 6,188 9,781 30.2 dash
19 no-host configure.util-linux 33,743 19,315 15,642 30.5 osh-cpython
27 no-host configure.util-linux 14,715 5,813 9,135 30.3 osh-native
35 no-host configure.util-linux 14,649 5,755 9,131 30.3 osh-native-souffle
6 no-host configure.yash 1,892 940 962 26.3 bash
14 no-host configure.yash 1,857 909 953 26.4 dash
22 no-host configure.yash 2,559 1,405 1,201 26.4 osh-cpython
30 no-host configure.yash 1,883 977 911 26.3 osh-native
38 no-host configure.yash 1,888 974 919 26.3 osh-native-souffle
0 no-host hello-world 1 1 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 55 34 21 17.3 osh-cpython
24 no-host hello-world 3 2 1 6.0 osh-native
32 no-host hello-world 3 2 1 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,518 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,135 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,982 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 38 3 osh-native
39 no-host abuild-print-help 3,104 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,357 0 0 0 8 0 1,981 192 bash
9 no-host bin-true 66,416 0 0 0 8 0 1,970 61 dash
17 no-host bin-true 761,841 0 0 0 8 0 1,998 384 osh-cpython
25 no-host bin-true 127,128 0 0 0 16 0 1,982 201 osh-native
33 no-host bin-true 127,473 0 0 0 16 0 1,970 196 osh-native-souffle
2 no-host configure.cpython 2,000,112 1 0 0 32,936 0 14,242 1,209 bash
10 no-host configure.cpython 2,023,840 0 0 0 32,992 0 14,326 1,111 dash
18 no-host configure.cpython 5,950,173 0 0 0 27,512 0 13,037 1,207 osh-cpython
26 no-host configure.cpython 1,997,261 0 0 0 27,520 0 13,031 1,110 osh-native
34 no-host configure.cpython 1,990,411 2 0 0 27,528 0 13,011 1,181 osh-native-souffle
4 no-host configure.ocaml 373,553 0 0 0 5,120 0 1,932 218 bash
12 no-host configure.ocaml 353,932 0 0 0 5,112 0 1,939 196 dash
20 no-host configure.ocaml 603,260 0 0 0 5,112 0 1,847 212 osh-cpython
28 no-host configure.ocaml 376,898 0 0 0 5,120 0 1,923 210 osh-native
36 no-host configure.ocaml 375,824 0 0 0 5,120 0 1,930 191 osh-native-souffle
5 no-host configure.tcc 6,072 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,005 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,850 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,509 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,503 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,905,923 3 0 0 42,392 0 18,480 1,255 bash
11 no-host configure.util-linux 2,079,351 0 0 0 42,592 0 17,442 1,409 dash
19 no-host configure.util-linux 5,126,040 10 0 0 39,128 0 17,023 1,410 osh-cpython
27 no-host configure.util-linux 1,803,323 1 0 0 39,128 0 17,028 1,162 osh-native
35 no-host configure.util-linux 1,809,223 1 0 0 39,128 0 16,925 1,121 osh-native-souffle
6 no-host configure.yash 232,514 0 0 0 4,120 0 867 92 bash
14 no-host configure.yash 222,437 0 0 0 3,720 0 865 123 dash
22 no-host configure.yash 360,997 0 0 0 3,728 0 850 77 osh-cpython
30 no-host configure.yash 235,437 0 0 0 3,736 0 848 104 osh-native
38 no-host configure.yash 235,292 0 0 0 3,736 0 844 90 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,680 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-10e3a105
dash dash-0ebcf347
osh-cpython osh-1e1d8c46
osh-native osh-a755e8d9
osh-native-souffle osh-74f8d413
host label host id
no-host no-host-e5b8d3ee