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 487 22 20 25.73 1.17
bin-true no-host 661 529 2,328 795 798 3.52 1.20
configure.cpython no-host 14,897 14,797 29,022 14,969 14,934 1.95 1.00
configure.ocaml no-host 3,779 3,679 4,691 3,776 3,783 1.24 1.00
configure.tcc no-host 47 40 208 48 47 4.38 1.01
configure.util-linux no-host 13,774 14,501 31,641 14,174 14,035 2.30 1.03
configure.yash no-host 1,793 1,751 2,518 1,812 1,808 1.40 1.01
hello-world no-host 1 1 56 3 3 41.69 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,515 1,093 25,096 3,188 3,055 9.98 1.27
bin-true no-host 105,242 66,430 797,934 128,167 126,291 7.58 1.22
configure.cpython no-host 1,994,680 2,016,752 6,111,205 2,016,557 1,998,957 3.06 1.01
configure.ocaml no-host 373,469 353,964 616,104 376,607 376,031 1.65 1.01
configure.tcc no-host 6,109 5,022 24,033 6,529 6,434 3.93 1.07
configure.util-linux no-host 1,915,069 2,069,930 5,281,710 1,821,288 1,808,748 2.76 0.95
configure.yash no-host 232,589 220,619 368,123 234,812 235,507 1.58 1.01
hello-world no-host 145 78 3,972 346 340 27.39 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.3 3.4 22.9 9.0 8.7 5.29 2.09
bin-true no-host 3.0 1.4 18.7 8.3 7.7 6.19 2.74
configure.cpython no-host 29.3 29.2 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.5 1.00 1.00
configure.tcc no-host 19.7 19.6 19.7 19.6 19.6 1.00 1.00
configure.util-linux no-host 30.2 30.2 30.3 30.4 30.3 1.00 1.01
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.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,810 3,810 0 702 1,872 1,236 2 0 50,000 0
bin-true no-host 795 1 2 2.6 8.3 156,777 15,416 2,903 8,754 77,339 70,684 3,008 3 50,000 0
configure.cpython no-host 14,969 1 69 15.5 29.2 1,785,018 30,561 28,528 91,507 886,576 806,935 25,736 61 50,000 0
configure.util-linux no-host 14,174 3 65 21.6 30.4 2,709,219 53,763 65,727 114,374 1,295,039 1,299,806 32,241 41 131,454 1
configure.ocaml no-host 3,776 1 2 2.6 22.6 149,864 11,180 5,223 7,735 70,876 71,253 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,580 30,580 0 1,544 14,638 14,398 271 0 50,000 0
configure.yash no-host 1,812 1 2 2.6 26.3 139,886 8,047 6,702 6,399 68,341 65,146 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,342 64,421 42,629 4,546 54,464 57,332 277 3 85,258 1
hello-world no-host 3 0 0 0.3 5.9 3,809 3,809 0 703 1,872 1,234 2 0 50,000 0
bin-true no-host 798 1 2 2.6 7.7 156,776 15,411 2,898 8,755 77,339 70,682 3,008 3 50,000 0
configure.cpython no-host 14,934 1 69 15.5 29.2 1,785,017 30,548 28,523 91,508 886,576 806,933 25,736 61 50,000 0
configure.util-linux no-host 14,035 3 64 21.6 30.3 2,709,219 53,740 65,722 114,376 1,295,039 1,299,804 32,241 41 131,444 1
configure.ocaml no-host 3,783 1 2 2.6 22.5 149,864 11,175 5,218 7,737 70,876 71,251 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,580 30,580 0 1,546 14,638 14,396 271 0 50,000 0
configure.yash no-host 1,808 1 2 2.6 26.3 139,886 8,036 6,691 6,401 68,341 65,144 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,341 64,416 42,624 4,547 54,464 57,330 277 3 85,248 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 3 6 3.4 dash
23 no-host abuild-print-help 487 425 65 22.9 osh-cpython
31 no-host abuild-print-help 22 11 12 9.0 osh-native
39 no-host abuild-print-help 20 12 9 8.7 osh-native-souffle
1 no-host bin-true 661 304 394 3.0 bash
9 no-host bin-true 529 274 266 1.4 dash
17 no-host bin-true 2,328 794 1,790 18.7 osh-cpython
25 no-host bin-true 795 293 517 8.3 osh-native
33 no-host bin-true 798 296 519 7.7 osh-native-souffle
2 no-host configure.cpython 14,897 6,684 8,640 29.3 bash
10 no-host configure.cpython 14,797 6,617 8,616 29.2 dash
18 no-host configure.cpython 29,022 14,492 16,414 29.2 osh-cpython
26 no-host configure.cpython 14,969 6,600 8,658 29.2 osh-native
34 no-host configure.cpython 14,934 6,524 8,690 29.2 osh-native-souffle
4 no-host configure.ocaml 3,779 1,325 1,492 22.6 bash
12 no-host configure.ocaml 3,679 1,310 1,391 22.6 dash
20 no-host configure.ocaml 4,691 1,933 1,979 22.6 osh-cpython
28 no-host configure.ocaml 3,776 1,322 1,495 22.6 osh-native
36 no-host configure.ocaml 3,783 1,309 1,513 22.5 osh-native-souffle
5 no-host configure.tcc 47 21 27 19.7 bash
13 no-host configure.tcc 40 22 18 19.6 dash
21 no-host configure.tcc 208 144 68 19.7 osh-cpython
29 no-host configure.tcc 48 22 26 19.6 osh-native
37 no-host configure.tcc 47 22 26 19.6 osh-native-souffle
3 no-host configure.util-linux 13,774 5,828 8,442 30.2 bash
11 no-host configure.util-linux 14,501 6,012 9,007 30.2 dash
19 no-host configure.util-linux 31,641 18,081 14,660 30.3 osh-cpython
27 no-host configure.util-linux 14,174 5,656 8,736 30.4 osh-native
35 no-host configure.util-linux 14,035 5,717 8,530 30.3 osh-native-souffle
6 no-host configure.yash 1,793 891 912 26.3 bash
14 no-host configure.yash 1,751 907 849 26.4 dash
22 no-host configure.yash 2,518 1,369 1,195 26.4 osh-cpython
30 no-host configure.yash 1,812 899 918 26.3 osh-native
38 no-host configure.yash 1,808 915 897 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 56 32 24 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.3 osh-native
32 no-host hello-world 3 1 2 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,515 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 25,096 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,188 0 0 0 16 0 39 7 osh-native
39 no-host abuild-print-help 3,055 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,242 0 0 0 8 0 1,984 90 bash
9 no-host bin-true 66,430 0 0 0 8 0 1,975 74 dash
17 no-host bin-true 797,934 0 0 0 8 0 1,986 125 osh-cpython
25 no-host bin-true 128,167 0 0 0 16 0 1,971 127 osh-native
33 no-host bin-true 126,291 0 0 0 16 0 1,988 126 osh-native-souffle
2 no-host configure.cpython 1,994,680 0 0 0 32,928 0 14,246 1,291 bash
10 no-host configure.cpython 2,016,752 1 0 0 32,992 0 14,403 1,167 dash
18 no-host configure.cpython 6,111,205 0 0 0 27,512 0 13,073 1,122 osh-cpython
26 no-host configure.cpython 2,016,557 1 0 0 27,520 0 13,122 1,080 osh-native
34 no-host configure.cpython 1,998,957 0 0 0 27,520 0 13,042 1,139 osh-native-souffle
4 no-host configure.ocaml 373,469 0 0 0 5,120 0 1,958 200 bash
12 no-host configure.ocaml 353,964 0 0 0 5,112 0 1,930 177 dash
20 no-host configure.ocaml 616,104 0 0 0 5,112 0 1,846 197 osh-cpython
28 no-host configure.ocaml 376,607 0 0 0 5,120 0 1,926 189 osh-native
36 no-host configure.ocaml 376,031 0 0 0 5,120 0 1,920 194 osh-native-souffle
5 no-host configure.tcc 6,109 0 0 0 104 0 49 7 bash
13 no-host configure.tcc 5,022 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,033 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,529 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,434 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,915,069 1 0 0 42,400 0 18,359 1,250 bash
11 no-host configure.util-linux 2,069,930 0 0 0 42,584 0 17,329 1,329 dash
19 no-host configure.util-linux 5,281,710 17 0 0 39,136 0 17,136 1,361 osh-cpython
27 no-host configure.util-linux 1,821,288 5 0 0 39,120 0 17,003 1,262 osh-native
35 no-host configure.util-linux 1,808,748 1 0 0 39,128 0 17,038 1,178 osh-native-souffle
6 no-host configure.yash 232,589 0 0 0 4,120 0 870 94 bash
14 no-host configure.yash 220,619 0 0 0 3,720 0 871 88 dash
22 no-host configure.yash 368,123 0 0 0 3,728 0 855 95 osh-cpython
30 no-host configure.yash 234,812 0 0 0 3,736 0 849 93 osh-native
38 no-host configure.yash 235,507 0 0 0 3,736 0 851 85 osh-native-souffle
0 no-host hello-world 145 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,972 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a498a322
dash dash-0ebcf347
osh-cpython osh-4113f9e4
osh-native osh-58ce3755
osh-native-souffle osh-707cbecb
host label host id
no-host no-host-e4839999