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 472 21 21 25.83 1.17
bin-true no-host 642 520 2,350 786 790 3.66 1.22
configure.cpython no-host 14,294 14,381 28,127 14,643 14,535 1.97 1.02
configure.ocaml no-host 3,691 3,628 4,547 3,708 3,710 1.23 1.00
configure.tcc no-host 45 40 201 47 46 4.44 1.04
configure.util-linux no-host 13,349 14,200 30,766 13,718 13,633 2.30 1.03
configure.yash no-host 1,752 1,707 2,403 1,764 1,753 1.37 1.01
hello-world no-host 1 1 56 3 3 42.20 2.11

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,530 1,085 24,333 3,173 3,100 9.62 1.25
bin-true no-host 104,353 66,402 801,250 129,286 127,243 7.68 1.24
configure.cpython no-host 1,993,249 2,020,704 6,102,391 2,015,914 2,001,879 3.06 1.01
configure.ocaml no-host 373,033 353,708 616,326 377,546 376,695 1.65 1.01
configure.tcc no-host 6,073 4,999 24,063 6,496 6,464 3.96 1.07
configure.util-linux no-host 1,913,539 2,078,934 5,290,130 1,817,516 1,806,400 2.76 0.95
configure.yash no-host 233,495 221,263 369,486 235,595 235,203 1.58 1.01
hello-world no-host 148 78 3,967 348 339 26.80 2.35

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.7 9.0 8.8 5.25 2.09
bin-true no-host 3.0 1.4 18.4 8.3 7.7 6.10 2.74
configure.cpython no-host 29.3 29.1 29.2 29.2 29.1 1.00 0.99
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.6 19.7 19.5 19.6 1.00 0.99
configure.util-linux no-host 30.3 30.2 30.3 30.3 30.2 1.00 1.00
configure.yash no-host 26.3 26.4 26.3 26.4 26.3 1.00 1.00
hello-world no-host 2.9 1.4 18.3 6.3 5.9 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,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 786 1 2 2.6 8.3 156,772 15,414 2,901 8,752 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 14,643 1 66 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 13,718 3 61 21.6 30.3 2,709,224 53,761 65,725 114,372 1,296,232 1,298,620 32,241 41 131,450 1
configure.ocaml no-host 3,708 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 47 0 0 1.3 19.5 30,575 30,575 0 1,542 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,764 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 21 1 2 2.8 9.0 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 790 1 2 2.6 7.7 156,771 15,409 2,896 8,753 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 14,535 1 65 15.4 29.1 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,633 3 61 21.6 30.2 2,709,224 53,738 65,720 114,374 1,296,232 1,298,618 32,241 41 131,440 1
configure.ocaml no-host 3,710 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 46 0 0 1.3 19.6 30,575 30,575 0 1,544 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,753 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.8 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 18 9 10 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 472 419 56 22.7 osh-cpython
31 no-host abuild-print-help 21 13 9 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.8 osh-native-souffle
1 no-host bin-true 642 300 374 3.0 bash
9 no-host bin-true 520 275 256 1.4 dash
17 no-host bin-true 2,350 826 1,774 18.4 osh-cpython
25 no-host bin-true 786 305 499 8.3 osh-native
33 no-host bin-true 790 302 502 7.7 osh-native-souffle
2 no-host configure.cpython 14,294 6,396 8,305 29.3 bash
10 no-host configure.cpython 14,381 6,594 8,216 29.1 dash
18 no-host configure.cpython 28,127 13,935 16,029 29.2 osh-cpython
26 no-host configure.cpython 14,643 6,460 8,422 29.2 osh-native
34 no-host configure.cpython 14,535 6,397 8,421 29.1 osh-native-souffle
4 no-host configure.ocaml 3,691 1,264 1,466 22.6 bash
12 no-host configure.ocaml 3,628 1,247 1,402 22.6 dash
20 no-host configure.ocaml 4,547 1,767 1,991 22.6 osh-cpython
28 no-host configure.ocaml 3,708 1,236 1,513 22.6 osh-native
36 no-host configure.ocaml 3,710 1,273 1,476 22.6 osh-native-souffle
5 no-host configure.tcc 45 26 20 19.7 bash
13 no-host configure.tcc 40 21 19 19.6 dash
21 no-host configure.tcc 201 141 64 19.7 osh-cpython
29 no-host configure.tcc 47 24 24 19.5 osh-native
37 no-host configure.tcc 46 20 27 19.6 osh-native-souffle
3 no-host configure.util-linux 13,349 5,677 8,159 30.3 bash
11 no-host configure.util-linux 14,200 5,745 8,972 30.2 dash
19 no-host configure.util-linux 30,766 17,635 14,191 30.3 osh-cpython
27 no-host configure.util-linux 13,718 5,476 8,463 30.3 osh-native
35 no-host configure.util-linux 13,633 5,482 8,369 30.2 osh-native-souffle
6 no-host configure.yash 1,752 859 904 26.3 bash
14 no-host configure.yash 1,707 884 828 26.4 dash
22 no-host configure.yash 2,403 1,301 1,143 26.3 osh-cpython
30 no-host configure.yash 1,764 908 860 26.4 osh-native
38 no-host configure.yash 1,753 842 916 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 40 16 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 3 0 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,530 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,085 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,333 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,173 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,100 0 0 0 16 0 39 6 osh-native-souffle
1 no-host bin-true 104,353 0 0 0 8 0 1,980 101 bash
9 no-host bin-true 66,402 0 0 0 8 0 1,981 100 dash
17 no-host bin-true 801,250 0 0 0 8 0 1,991 382 osh-cpython
25 no-host bin-true 129,286 0 0 0 16 0 1,980 161 osh-native
33 no-host bin-true 127,243 0 0 0 16 0 1,987 424 osh-native-souffle
2 no-host configure.cpython 1,993,249 1 0 0 32,928 0 14,233 1,233 bash
10 no-host configure.cpython 2,020,704 0 0 0 32,992 0 14,343 1,096 dash
18 no-host configure.cpython 6,102,391 1 0 0 27,512 0 13,021 1,334 osh-cpython
26 no-host configure.cpython 2,015,914 0 0 0 27,520 0 13,121 1,196 osh-native
34 no-host configure.cpython 2,001,879 0 0 0 27,520 0 13,148 1,160 osh-native-souffle
4 no-host configure.ocaml 373,033 0 0 0 5,120 0 1,947 215 bash
12 no-host configure.ocaml 353,708 0 0 0 5,112 0 1,938 211 dash
20 no-host configure.ocaml 616,326 0 0 0 5,112 0 1,849 200 osh-cpython
28 no-host configure.ocaml 377,546 0 0 0 5,120 0 1,924 211 osh-native
36 no-host configure.ocaml 376,695 0 0 0 5,120 0 1,928 209 osh-native-souffle
5 no-host configure.tcc 6,073 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,999 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,063 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,496 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,464 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,913,539 0 0 0 42,400 0 18,453 1,322 bash
11 no-host configure.util-linux 2,078,934 0 0 0 42,584 0 17,281 1,482 dash
19 no-host configure.util-linux 5,290,130 3 0 0 39,120 0 16,950 1,331 osh-cpython
27 no-host configure.util-linux 1,817,516 2 0 0 39,120 0 17,021 1,281 osh-native
35 no-host configure.util-linux 1,806,400 0 0 0 39,128 0 17,030 1,219 osh-native-souffle
6 no-host configure.yash 233,495 0 0 0 4,120 0 872 100 bash
14 no-host configure.yash 221,263 0 0 0 3,720 0 867 99 dash
22 no-host configure.yash 369,486 0 0 0 3,728 0 850 106 osh-cpython
30 no-host configure.yash 235,595 0 0 0 3,736 0 854 113 osh-native
38 no-host configure.yash 235,203 0 0 0 3,736 0 848 104 osh-native-souffle
0 no-host hello-world 148 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,967 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3578b6ac
dash dash-0ebcf347
osh-cpython osh-8728dca7
osh-native osh-a6e64239
osh-native-souffle osh-24a3bc02
host label host id
no-host no-host-e4839999