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 18 9 470 21 20 25.39 1.16
bin-true no-host 657 526 2,418 794 789 3.68 1.21
configure.cpython no-host 14,575 14,562 28,693 14,739 14,831 1.97 1.01
configure.ocaml no-host 3,744 3,728 4,589 3,733 3,757 1.23 1.00
configure.tcc no-host 46 41 202 48 47 4.39 1.03
configure.util-linux no-host 13,528 14,403 31,220 13,858 13,819 2.31 1.02
configure.yash no-host 1,782 1,720 2,431 1,786 1,777 1.36 1.00
hello-world no-host 1 1 56 3 3 43.27 2.14

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,508 1,086 24,055 3,190 3,132 9.59 1.27
bin-true no-host 106,348 66,465 809,081 128,116 128,107 7.61 1.20
configure.cpython no-host 1,994,244 2,022,130 6,103,597 2,021,574 2,009,689 3.06 1.01
configure.ocaml no-host 373,488 353,937 616,248 376,744 376,594 1.65 1.01
configure.tcc no-host 6,070 5,021 23,998 6,525 6,502 3.95 1.07
configure.util-linux no-host 1,910,597 2,076,754 5,281,621 1,817,408 1,815,928 2.76 0.95
configure.yash no-host 233,411 222,197 369,044 236,337 234,686 1.58 1.01
hello-world no-host 145 78 3,964 346 344 27.34 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.5 22.9 8.9 8.7 5.29 2.06
bin-true no-host 2.9 1.6 18.5 8.1 7.7 6.43 2.82
configure.cpython no-host 29.2 29.1 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.5 1.00 1.00
configure.tcc no-host 19.6 19.6 19.8 19.6 19.6 1.01 1.00
configure.util-linux no-host 30.3 30.3 30.2 30.3 30.3 1.00 1.00
configure.yash no-host 26.4 26.5 26.4 26.3 26.4 1.00 1.00
hello-world no-host 2.9 1.4 18.3 6.3 6.0 6.34 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.3 6.3 3,801 3,801 0 699 1,869 1,233 2 0 50,000 0
bin-true no-host 794 1 2 2.6 8.1 153,768 12,333 2,897 8,751 76,336 68,681 3,008 3 50,000 0
configure.cpython no-host 14,739 1 62 15.3 29.2 1,773,759 49,824 28,522 91,504 881,464 800,791 25,736 60 50,000 0
configure.util-linux no-host 13,858 3 61 21.6 30.3 2,704,670 53,753 65,721 114,371 1,293,956 1,296,343 32,241 41 131,442 1
configure.ocaml no-host 3,733 0 2 2.6 22.6 149,784 11,150 5,217 7,732 70,843 71,209 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,569 30,569 0 1,541 14,634 14,394 271 0 50,000 0
configure.yash no-host 1,786 1 2 2.6 26.3 139,680 8,037 6,696 6,393 68,252 65,035 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.9 116,317 64,415 42,623 4,543 54,453 57,321 277 3 85,246 1
hello-world no-host 3 0 0 0.3 6.0 3,800 3,800 0 700 1,869 1,231 2 0 50,000 0
bin-true no-host 789 1 2 2.6 7.7 153,767 12,328 2,892 8,752 76,336 68,679 3,008 3 50,000 0
configure.cpython no-host 14,831 1 63 15.3 29.2 1,773,758 49,819 28,517 91,505 881,464 800,789 25,736 60 50,000 0
configure.util-linux no-host 13,819 3 64 21.6 30.3 2,704,670 53,736 65,716 114,373 1,293,956 1,296,341 32,241 41 131,432 1
configure.ocaml no-host 3,757 1 2 2.6 22.5 149,784 11,145 5,212 7,734 70,843 71,207 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,569 30,569 0 1,543 14,634 14,392 271 0 50,000 0
configure.yash no-host 1,777 1 2 2.6 26.4 139,680 8,032 6,691 6,395 68,252 65,033 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,316 64,410 42,618 4,544 54,453 57,319 277 3 85,236 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 18 8 11 4.3 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 470 416 57 22.9 osh-cpython
31 no-host abuild-print-help 21 11 11 8.9 osh-native
39 no-host abuild-print-help 20 12 9 8.7 osh-native-souffle
1 no-host bin-true 657 302 387 2.9 bash
9 no-host bin-true 526 278 259 1.6 dash
17 no-host bin-true 2,418 852 1,827 18.5 osh-cpython
25 no-host bin-true 794 293 517 8.1 osh-native
33 no-host bin-true 789 301 506 7.7 osh-native-souffle
2 no-host configure.cpython 14,575 6,543 8,439 29.2 bash
10 no-host configure.cpython 14,562 6,570 8,418 29.1 dash
18 no-host configure.cpython 28,693 14,439 16,141 29.2 osh-cpython
26 no-host configure.cpython 14,739 6,428 8,597 29.2 osh-native
34 no-host configure.cpython 14,831 6,571 8,418 29.2 osh-native-souffle
4 no-host configure.ocaml 3,744 1,283 1,491 22.6 bash
12 no-host configure.ocaml 3,728 1,286 1,463 22.5 dash
20 no-host configure.ocaml 4,589 1,828 1,974 22.6 osh-cpython
28 no-host configure.ocaml 3,733 1,304 1,470 22.6 osh-native
36 no-host configure.ocaml 3,757 1,269 1,512 22.5 osh-native-souffle
5 no-host configure.tcc 46 22 24 19.6 bash
13 no-host configure.tcc 41 22 19 19.6 dash
21 no-host configure.tcc 202 135 71 19.8 osh-cpython
29 no-host configure.tcc 48 16 32 19.6 osh-native
37 no-host configure.tcc 47 22 25 19.6 osh-native-souffle
3 no-host configure.util-linux 13,528 5,780 8,248 30.3 bash
11 no-host configure.util-linux 14,403 5,849 9,073 30.3 dash
19 no-host configure.util-linux 31,220 17,682 14,618 30.2 osh-cpython
27 no-host configure.util-linux 13,858 5,596 8,479 30.3 osh-native
35 no-host configure.util-linux 13,819 5,532 8,506 30.3 osh-native-souffle
6 no-host configure.yash 1,782 887 905 26.4 bash
14 no-host configure.yash 1,720 886 836 26.5 dash
22 no-host configure.yash 2,431 1,353 1,121 26.4 osh-cpython
30 no-host configure.yash 1,786 910 881 26.3 osh-native
38 no-host configure.yash 1,777 923 860 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 38 18 18.3 osh-cpython
24 no-host hello-world 3 1 1 6.3 osh-native
32 no-host hello-world 3 0 3 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,508 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,086 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,055 0 0 0 8 0 45 3 osh-cpython
31 no-host abuild-print-help 3,190 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,132 0 0 0 16 0 38 1 osh-native-souffle
1 no-host bin-true 106,348 0 0 0 8 0 1,971 190 bash
9 no-host bin-true 66,465 0 0 0 8 0 1,979 159 dash
17 no-host bin-true 809,081 0 0 0 8 0 1,994 614 osh-cpython
25 no-host bin-true 128,116 0 0 0 16 0 1,979 179 osh-native
33 no-host bin-true 128,107 0 0 0 16 0 1,983 199 osh-native-souffle
2 no-host configure.cpython 1,994,244 1 0 0 32,928 0 14,226 1,221 bash
10 no-host configure.cpython 2,022,130 0 0 0 32,992 0 14,334 1,283 dash
18 no-host configure.cpython 6,103,597 0 0 0 27,512 0 13,021 1,197 osh-cpython
26 no-host configure.cpython 2,021,574 0 0 0 27,520 0 13,138 1,167 osh-native
34 no-host configure.cpython 2,009,689 0 0 0 27,520 0 13,098 1,066 osh-native-souffle
4 no-host configure.ocaml 373,488 0 0 0 5,120 0 1,946 198 bash
12 no-host configure.ocaml 353,937 0 0 0 5,112 0 1,942 180 dash
20 no-host configure.ocaml 616,248 0 0 0 5,112 0 1,844 211 osh-cpython
28 no-host configure.ocaml 376,744 0 0 0 5,120 0 1,926 205 osh-native
36 no-host configure.ocaml 376,594 0 0 0 5,120 0 1,936 202 osh-native-souffle
5 no-host configure.tcc 6,070 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,021 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,998 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,525 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,502 0 0 0 104 0 46 4 osh-native-souffle
3 no-host configure.util-linux 1,910,597 1 0 0 42,400 0 18,500 1,343 bash
11 no-host configure.util-linux 2,076,754 0 0 0 42,584 0 17,254 1,383 dash
19 no-host configure.util-linux 5,281,621 6 0 0 39,112 0 17,012 1,502 osh-cpython
27 no-host configure.util-linux 1,817,408 0 0 0 39,120 0 17,006 1,260 osh-native
35 no-host configure.util-linux 1,815,928 1 0 0 39,128 0 16,981 1,112 osh-native-souffle
6 no-host configure.yash 233,411 0 0 0 4,120 0 865 79 bash
14 no-host configure.yash 222,197 0 0 0 3,720 0 871 99 dash
22 no-host configure.yash 369,044 0 0 0 3,728 0 856 98 osh-cpython
30 no-host configure.yash 236,337 0 0 0 3,744 0 847 97 osh-native
38 no-host configure.yash 234,686 0 0 0 3,736 0 844 88 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,964 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-430546b4
dash dash-0ebcf347
osh-cpython osh-ba813205
osh-native osh-8fd15444
osh-native-souffle osh-6da61ae1
host label host id
no-host no-host-e4839999