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 447 22 21 23.38 1.16
bin-true no-host 675 539 2,240 803 808 3.32 1.19
configure.cpython no-host 14,735 14,808 28,043 14,943 14,998 1.90 1.01
configure.ocaml no-host 3,747 3,688 4,557 3,765 3,764 1.22 1.00
configure.tcc no-host 47 41 192 48 48 4.11 1.03
configure.util-linux no-host 13,753 14,630 30,571 14,104 14,035 2.22 1.03
configure.yash no-host 1,780 1,739 2,409 1,795 1,787 1.35 1.01
hello-world no-host 2 1 48 3 3 31.97 1.85

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,531 1,139 23,175 3,236 3,143 9.16 1.28
bin-true no-host 105,323 65,454 760,510 127,080 127,179 7.22 1.21
configure.cpython no-host 2,221,563 2,242,401 6,172,164 2,231,186 2,230,500 2.78 1.00
configure.ocaml no-host 410,684 391,245 643,082 413,217 412,948 1.57 1.01
configure.tcc no-host 6,525 5,469 23,436 6,969 6,943 3.59 1.07
configure.util-linux no-host 2,102,383 2,260,374 5,327,427 2,002,347 1,989,182 2.53 0.95
configure.yash no-host 256,168 244,585 386,009 258,386 257,451 1.51 1.01
hello-world no-host 152 81 3,724 350 344 24.50 2.30

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 21.9 8.9 8.7 5.06 2.06
bin-true no-host 2.9 1.4 17.6 8.0 7.9 6.09 2.77
configure.cpython no-host 27.4 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.4 1.01 1.01
configure.tcc no-host 19.4 19.3 19.3 19.4 19.1 0.99 1.00
configure.util-linux no-host 30.1 30.1 30.0 29.9 30.3 1.00 0.99
configure.yash no-host 24.2 24.4 24.4 24.2 24.4 1.01 1.00
hello-world no-host 2.9 1.6 17.6 6.3 5.9 6.09 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.2 6.3 3,710 3,710 0 691 1,832 1,187 2 0 50,000 0
bin-true no-host 803 1 2 2.6 8.0 154,675 12,909 2,811 9,741 78,301 66,633 3,008 3 50,000 0
configure.cpython no-host 14,943 1 57 14.9 27.5 1,772,657 49,101 28,521 86,394 908,053 778,210 22,694 60 50,000 0
configure.util-linux no-host 14,104 3 58 21.3 29.9 2,703,393 42,738 65,825 109,656 1,320,551 1,273,186 27,391 41 131,650 1
configure.ocaml no-host 3,765 0 2 2.6 20.6 150,027 10,986 5,156 7,526 71,585 70,916 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,516 30,516 0 1,517 14,756 14,243 226 0 50,000 0
configure.yash no-host 1,795 1 2 2.6 24.2 139,684 7,954 6,613 6,333 70,261 63,090 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,259 64,464 42,674 4,568 54,501 57,190 270 3 85,348 1
hello-world no-host 3 0 0 0.2 5.9 3,709 3,709 0 692 1,832 1,185 2 0 50,000 0
bin-true no-host 808 1 2 2.6 7.9 154,674 12,774 2,749 9,742 78,301 66,631 3,008 3 50,000 0
configure.cpython no-host 14,998 1 59 15.0 27.5 1,772,656 44,553 28,459 86,395 908,053 778,208 22,694 60 50,000 0
configure.util-linux no-host 14,035 3 58 21.3 30.3 2,703,393 44,639 65,762 109,658 1,320,551 1,273,184 27,391 41 131,524 1
configure.ocaml no-host 3,764 1 2 2.6 20.4 150,027 10,923 5,093 7,528 71,585 70,914 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.1 30,516 30,516 0 1,519 14,756 14,241 226 0 50,000 0
configure.yash no-host 1,787 1 2 2.6 24.4 139,684 7,892 6,551 6,335 70,261 63,088 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,258 64,402 42,612 4,569 54,501 57,188 270 3 85,224 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 15 5 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 447 397 53 21.9 osh-cpython
31 no-host abuild-print-help 22 11 12 8.9 osh-native
39 no-host abuild-print-help 21 19 3 8.7 osh-native-souffle
1 no-host bin-true 675 498 209 2.9 bash
9 no-host bin-true 539 409 140 1.4 dash
17 no-host bin-true 2,240 1,516 976 17.6 osh-cpython
25 no-host bin-true 803 562 256 8.0 osh-native
33 no-host bin-true 808 575 246 7.9 osh-native-souffle
2 no-host configure.cpython 14,735 8,954 6,168 27.4 bash
10 no-host configure.cpython 14,808 8,999 6,230 27.4 dash
18 no-host configure.cpython 28,043 17,081 12,765 27.4 osh-cpython
26 no-host configure.cpython 14,943 8,851 6,361 27.5 osh-native
34 no-host configure.cpython 14,998 8,879 6,304 27.5 osh-native-souffle
4 no-host configure.ocaml 3,747 1,529 1,259 20.4 bash
12 no-host configure.ocaml 3,688 1,521 1,186 20.6 dash
20 no-host configure.ocaml 4,557 2,143 1,617 20.6 osh-cpython
28 no-host configure.ocaml 3,765 1,592 1,212 20.6 osh-native
36 no-host configure.ocaml 3,764 1,539 1,262 20.4 osh-native-souffle
5 no-host configure.tcc 47 22 25 19.4 bash
13 no-host configure.tcc 41 24 17 19.3 dash
21 no-host configure.tcc 192 117 78 19.3 osh-cpython
29 no-host configure.tcc 48 19 29 19.4 osh-native
37 no-host configure.tcc 48 27 21 19.1 osh-native-souffle
3 no-host configure.util-linux 13,753 8,588 5,643 30.1 bash
11 no-host configure.util-linux 14,630 8,948 6,172 30.1 dash
19 no-host configure.util-linux 30,571 20,586 11,034 30.0 osh-cpython
27 no-host configure.util-linux 14,104 8,584 5,717 29.9 osh-native
35 no-host configure.util-linux 14,035 8,491 5,740 30.3 osh-native-souffle
6 no-host configure.yash 1,780 1,024 764 24.2 bash
14 no-host configure.yash 1,739 1,081 662 24.4 dash
22 no-host configure.yash 2,409 1,488 961 24.4 osh-cpython
30 no-host configure.yash 1,795 1,061 738 24.2 osh-native
38 no-host configure.yash 1,787 1,040 750 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 24 24 17.6 osh-cpython
24 no-host hello-world 3 3 0 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,531 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,139 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,175 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,236 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,143 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,323 0 0 0 8 0 1,996 106 bash
9 no-host bin-true 65,454 0 0 0 8 0 1,988 88 dash
17 no-host bin-true 760,510 0 0 0 8 0 1,994 85 osh-cpython
25 no-host bin-true 127,080 0 0 0 16 0 1,989 49 osh-native
33 no-host bin-true 127,179 0 0 0 16 0 1,992 96 osh-native-souffle
2 no-host configure.cpython 2,221,563 1 0 0 32,928 0 14,474 1,060 bash
10 no-host configure.cpython 2,242,401 0 0 0 32,992 0 14,720 1,322 dash
18 no-host configure.cpython 6,172,164 1 0 0 27,512 0 13,251 1,082 osh-cpython
26 no-host configure.cpython 2,231,186 0 0 0 27,520 0 13,262 1,170 osh-native
34 no-host configure.cpython 2,230,500 0 0 0 27,520 0 13,320 1,056 osh-native-souffle
4 no-host configure.ocaml 410,684 0 0 0 5,120 0 1,943 161 bash
12 no-host configure.ocaml 391,245 0 0 0 5,112 0 1,934 174 dash
20 no-host configure.ocaml 643,082 0 0 0 5,112 0 1,862 167 osh-cpython
28 no-host configure.ocaml 413,217 0 0 0 5,120 0 1,930 155 osh-native
36 no-host configure.ocaml 412,948 0 0 0 5,120 0 1,925 139 osh-native-souffle
5 no-host configure.tcc 6,525 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,436 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,969 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,943 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,102,383 1 0 0 42,400 0 18,590 1,043 bash
11 no-host configure.util-linux 2,260,374 0 0 0 42,584 0 17,415 1,058 dash
19 no-host configure.util-linux 5,327,427 13 0 0 39,120 0 16,976 1,226 osh-cpython
27 no-host configure.util-linux 2,002,347 0 0 0 39,120 0 16,955 1,016 osh-native
35 no-host configure.util-linux 1,989,182 0 0 0 39,128 0 17,126 919 osh-native-souffle
6 no-host configure.yash 256,168 0 0 0 4,120 0 872 80 bash
14 no-host configure.yash 244,585 0 0 0 3,720 0 869 89 dash
22 no-host configure.yash 386,009 0 0 0 3,728 0 855 74 osh-cpython
30 no-host configure.yash 258,386 0 0 0 3,736 0 847 76 osh-native
38 no-host configure.yash 257,451 0 0 0 3,736 0 848 82 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,724 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-79d3dcd6
dash dash-0ebcf347
osh-cpython osh-fe90d284
osh-native osh-727da07d
osh-native-souffle osh-9004233c
host label host id
no-host no-host-556df3ee