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 20 10 487 23 22 24.77 1.16
bin-true no-host 670 534 2,421 800 808 3.62 1.20
configure.cpython no-host 15,197 15,065 29,422 15,244 15,594 1.94 1.00
configure.ocaml no-host 3,873 3,749 4,704 3,847 3,893 1.21 0.99
configure.tcc no-host 49 41 207 49 48 4.27 1.01
configure.util-linux no-host 14,037 14,954 32,166 14,324 14,426 2.29 1.02
configure.yash no-host 1,847 1,797 2,516 1,842 1,881 1.36 1.00
hello-world no-host 1 1 56 3 3 41.22 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,564 1,131 24,391 3,205 3,071 9.51 1.25
bin-true no-host 106,379 65,510 811,077 128,135 128,143 7.62 1.20
configure.cpython no-host 1,996,206 2,017,449 6,104,982 2,003,717 2,000,902 3.06 1.00
configure.ocaml no-host 372,939 354,063 615,715 376,927 376,270 1.65 1.01
configure.tcc no-host 6,083 4,990 24,068 6,504 6,463 3.96 1.07
configure.util-linux no-host 1,909,477 2,073,636 5,311,133 1,825,249 1,811,555 2.78 0.96
configure.yash no-host 233,692 222,311 369,212 235,128 235,009 1.58 1.01
hello-world no-host 150 77 3,981 345 338 26.54 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.5 3.5 22.9 9.2 8.5 5.13 2.06
bin-true no-host 2.9 1.4 18.5 8.1 7.9 6.43 2.82
configure.cpython no-host 29.1 29.2 29.1 29.3 28.9 1.00 1.01
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.6 19.6 19.7 1.00 1.00
configure.util-linux no-host 30.5 30.3 30.2 30.2 30.3 0.99 0.99
configure.yash no-host 26.5 26.4 26.4 26.4 26.4 1.00 0.99
hello-world no-host 2.9 1.6 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 800 1 2 2.6 8.1 153,772 12,413 2,901 8,752 76,337 68,683 3,008 3 50,000 0
configure.cpython no-host 15,244 2 71 15.3 29.3 1,773,763 49,828 28,526 91,505 881,465 800,793 25,736 60 50,000 0
configure.util-linux no-host 14,324 3 69 21.6 30.2 2,704,674 53,757 65,705 114,372 1,293,957 1,296,345 32,241 41 131,410 1
configure.ocaml no-host 3,847 1 2 2.6 22.6 149,788 11,154 5,221 7,733 70,844 71,211 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.6 30,573 30,573 0 1,542 14,635 14,396 271 0 50,000 0
configure.yash no-host 1,842 1 2 2.6 26.4 139,684 8,041 6,700 6,395 68,253 65,036 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.2 116,321 64,419 42,627 4,544 54,454 57,323 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 808 1 2 2.6 7.9 153,771 12,332 2,896 8,753 76,337 68,681 3,008 3 50,000 0
configure.cpython no-host 15,594 1 71 15.3 28.9 1,773,762 49,823 28,521 91,506 881,465 800,791 25,736 60 50,000 0
configure.util-linux no-host 14,426 3 69 21.6 30.3 2,704,674 53,734 65,720 114,374 1,293,957 1,296,343 32,241 41 131,440 1
configure.ocaml no-host 3,893 1 2 2.6 22.6 149,788 11,149 5,216 7,735 70,844 71,209 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,573 30,573 0 1,544 14,635 14,394 271 0 50,000 0
configure.yash no-host 1,881 1 2 2.6 26.4 139,684 8,030 6,689 6,397 68,253 65,034 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.5 116,320 64,414 42,622 4,545 54,454 57,321 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 20 9 11 4.5 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 487 429 61 22.9 osh-cpython
31 no-host abuild-print-help 23 10 13 9.2 osh-native
39 no-host abuild-print-help 22 12 11 8.5 osh-native-souffle
1 no-host bin-true 670 306 399 2.9 bash
9 no-host bin-true 534 272 273 1.4 dash
17 no-host bin-true 2,421 828 1,854 18.5 osh-cpython
25 no-host bin-true 800 305 512 8.1 osh-native
33 no-host bin-true 808 297 528 7.9 osh-native-souffle
2 no-host configure.cpython 15,197 6,883 8,743 29.1 bash
10 no-host configure.cpython 15,065 6,797 8,719 29.2 dash
18 no-host configure.cpython 29,422 14,787 16,566 29.1 osh-cpython
26 no-host configure.cpython 15,244 6,716 8,827 29.3 osh-native
34 no-host configure.cpython 15,594 6,642 9,110 28.9 osh-native-souffle
4 no-host configure.ocaml 3,873 1,363 1,555 22.6 bash
12 no-host configure.ocaml 3,749 1,325 1,448 22.6 dash
20 no-host configure.ocaml 4,704 1,941 1,988 22.6 osh-cpython
28 no-host configure.ocaml 3,847 1,359 1,532 22.6 osh-native
36 no-host configure.ocaml 3,893 1,376 1,558 22.6 osh-native-souffle
5 no-host configure.tcc 49 24 26 19.7 bash
13 no-host configure.tcc 41 21 20 19.6 dash
21 no-host configure.tcc 207 140 72 19.6 osh-cpython
29 no-host configure.tcc 49 22 28 19.6 osh-native
37 no-host configure.tcc 48 18 31 19.7 osh-native-souffle
3 no-host configure.util-linux 14,037 6,074 8,474 30.5 bash
11 no-host configure.util-linux 14,954 6,065 9,428 30.3 dash
19 no-host configure.util-linux 32,166 18,238 15,062 30.2 osh-cpython
27 no-host configure.util-linux 14,324 5,732 8,828 30.2 osh-native
35 no-host configure.util-linux 14,426 5,779 8,870 30.3 osh-native-souffle
6 no-host configure.yash 1,847 948 910 26.5 bash
14 no-host configure.yash 1,797 907 895 26.4 dash
22 no-host configure.yash 2,516 1,384 1,178 26.4 osh-cpython
30 no-host configure.yash 1,842 915 930 26.4 osh-native
38 no-host configure.yash 1,881 921 965 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 41 16 18.3 osh-cpython
24 no-host hello-world 3 1 2 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,564 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,131 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 24,391 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,071 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,379 0 0 0 8 0 1,987 271 bash
9 no-host bin-true 65,510 0 0 0 8 0 1,980 108 dash
17 no-host bin-true 811,077 0 0 0 8 0 1,980 236 osh-cpython
25 no-host bin-true 128,135 0 0 0 16 0 1,972 95 osh-native
33 no-host bin-true 128,143 0 0 0 16 0 1,982 115 osh-native-souffle
2 no-host configure.cpython 1,996,206 0 0 0 32,928 0 14,248 1,138 bash
10 no-host configure.cpython 2,017,449 0 0 0 32,992 0 14,386 1,165 dash
18 no-host configure.cpython 6,104,982 0 0 0 27,512 0 13,115 1,179 osh-cpython
26 no-host configure.cpython 2,003,717 1 0 0 27,520 0 13,159 1,095 osh-native
34 no-host configure.cpython 2,000,902 0 0 0 27,520 0 13,165 1,018 osh-native-souffle
4 no-host configure.ocaml 372,939 0 0 0 5,120 0 1,946 197 bash
12 no-host configure.ocaml 354,063 0 0 0 5,112 0 1,941 188 dash
20 no-host configure.ocaml 615,715 0 0 0 5,112 0 1,850 181 osh-cpython
28 no-host configure.ocaml 376,927 0 0 0 5,120 0 1,926 190 osh-native
36 no-host configure.ocaml 376,270 0 0 0 5,120 0 1,921 197 osh-native-souffle
5 no-host configure.tcc 6,083 0 0 0 104 0 47 4 bash
13 no-host configure.tcc 4,990 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,068 0 0 0 96 0 53 2 osh-cpython
29 no-host configure.tcc 6,504 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,463 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,909,477 1 0 0 42,400 0 18,398 1,189 bash
11 no-host configure.util-linux 2,073,636 1 0 0 42,584 0 17,302 1,499 dash
19 no-host configure.util-linux 5,311,133 12 0 0 39,112 0 17,010 1,377 osh-cpython
27 no-host configure.util-linux 1,825,249 0 0 0 39,120 0 17,013 1,181 osh-native
35 no-host configure.util-linux 1,811,555 0 0 0 39,128 0 16,933 1,119 osh-native-souffle
6 no-host configure.yash 233,692 0 0 0 4,120 0 870 94 bash
14 no-host configure.yash 222,311 0 0 0 3,720 0 867 92 dash
22 no-host configure.yash 369,212 0 0 0 3,728 0 849 99 osh-cpython
30 no-host configure.yash 235,128 0 0 0 3,736 0 848 141 osh-native
38 no-host configure.yash 235,009 0 0 0 3,736 0 847 90 osh-native-souffle
0 no-host hello-world 150 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,981 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-179ed2dc
dash dash-0ebcf347
osh-cpython osh-184d2d40
osh-native osh-41509041
osh-native-souffle osh-fa59d561
host label host id
no-host no-host-e4839999