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 21 26.28 1.17
bin-true no-host 649 535 2,367 788 781 3.65 1.21
configure.cpython no-host 14,494 14,595 28,448 14,798 14,759 1.96 1.02
configure.ocaml no-host 3,747 3,669 4,602 3,746 3,749 1.23 1.00
configure.tcc no-host 47 40 204 48 47 4.38 1.02
configure.util-linux no-host 13,550 14,360 31,107 13,948 13,886 2.30 1.03
configure.yash no-host 1,777 1,722 2,432 1,784 1,781 1.37 1.00
hello-world no-host 1 1 56 3 3 44.07 2.21

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,534 1,089 25,110 3,210 3,100 9.91 1.27
bin-true no-host 106,439 65,437 801,910 128,211 125,115 7.53 1.20
configure.cpython no-host 1,992,687 2,022,195 6,106,803 2,016,680 1,999,556 3.06 1.01
configure.ocaml no-host 373,477 353,881 615,727 376,461 376,414 1.65 1.01
configure.tcc no-host 6,058 5,005 24,049 6,523 6,439 3.97 1.08
configure.util-linux no-host 1,910,061 2,082,609 5,279,232 1,821,035 1,818,106 2.76 0.95
configure.yash no-host 233,455 221,618 369,698 235,732 235,116 1.58 1.01
hello-world no-host 148 75 3,966 344 340 26.80 2.32

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.4 22.9 8.9 8.7 5.13 2.00
bin-true no-host 2.9 1.4 18.5 8.1 7.6 6.43 2.82
configure.cpython no-host 29.5 29.0 29.2 29.2 29.2 0.99 0.99
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.8 19.7 19.7 19.4 19.5 0.99 0.98
configure.util-linux no-host 30.3 30.2 30.3 30.2 30.2 1.00 1.00
configure.yash no-host 26.4 26.4 26.4 26.4 26.5 1.00 1.00
hello-world no-host 2.8 1.4 18.5 6.3 5.9 6.73 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 788 1 2 2.6 8.1 156,777 15,416 2,903 8,754 77,339 70,684 3,008 3 50,000 0
configure.cpython no-host 14,798 1 66 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 13,948 3 62 21.6 30.2 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,746 1 2 2.6 22.5 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.4 30,580 30,580 0 1,544 14,638 14,398 271 0 50,000 0
configure.yash no-host 1,784 1 2 2.6 26.4 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 8.9 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 781 1 2 2.6 7.6 156,776 15,411 2,898 8,755 77,339 70,682 3,008 3 50,000 0
configure.cpython no-host 14,759 2 66 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 13,886 3 62 21.6 30.2 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,749 1 2 2.6 22.6 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.5 30,580 30,580 0 1,546 14,638 14,396 271 0 50,000 0
configure.yash no-host 1,781 1 2 2.6 26.5 139,886 8,036 6,691 6,401 68,341 65,144 2,095 3 50,000 0
abuild-print-help no-host 21 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 9 10 4.5 bash
15 no-host abuild-print-help 9 3 6 3.4 dash
23 no-host abuild-print-help 487 433 57 22.9 osh-cpython
31 no-host abuild-print-help 22 12 10 8.9 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 649 300 382 2.9 bash
9 no-host bin-true 535 265 280 1.4 dash
17 no-host bin-true 2,367 797 1,827 18.5 osh-cpython
25 no-host bin-true 788 291 513 8.1 osh-native
33 no-host bin-true 781 295 503 7.6 osh-native-souffle
2 no-host configure.cpython 14,494 6,554 8,349 29.5 bash
10 no-host configure.cpython 14,595 6,658 8,354 29.0 dash
18 no-host configure.cpython 28,448 14,422 15,886 29.2 osh-cpython
26 no-host configure.cpython 14,798 6,497 8,589 29.2 osh-native
34 no-host configure.cpython 14,759 6,482 8,553 29.2 osh-native-souffle
4 no-host configure.ocaml 3,747 1,318 1,448 22.6 bash
12 no-host configure.ocaml 3,669 1,234 1,457 22.6 dash
20 no-host configure.ocaml 4,602 1,831 1,986 22.6 osh-cpython
28 no-host configure.ocaml 3,746 1,299 1,487 22.5 osh-native
36 no-host configure.ocaml 3,749 1,292 1,497 22.6 osh-native-souffle
5 no-host configure.tcc 47 23 24 19.8 bash
13 no-host configure.tcc 40 20 20 19.7 dash
21 no-host configure.tcc 204 139 69 19.7 osh-cpython
29 no-host configure.tcc 48 23 25 19.4 osh-native
37 no-host configure.tcc 47 23 24 19.5 osh-native-souffle
3 no-host configure.util-linux 13,550 5,736 8,300 30.3 bash
11 no-host configure.util-linux 14,360 5,827 9,040 30.2 dash
19 no-host configure.util-linux 31,107 17,797 14,386 30.3 osh-cpython
27 no-host configure.util-linux 13,948 5,629 8,538 30.2 osh-native
35 no-host configure.util-linux 13,886 5,579 8,518 30.2 osh-native-souffle
6 no-host configure.yash 1,777 906 881 26.4 bash
14 no-host configure.yash 1,722 875 852 26.4 dash
22 no-host configure.yash 2,432 1,391 1,082 26.4 osh-cpython
30 no-host configure.yash 1,784 899 890 26.4 osh-native
38 no-host configure.yash 1,781 859 927 26.5 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 36 20 18.5 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,534 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,089 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 25,110 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,210 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 106,439 0 0 0 8 0 1,991 114 bash
9 no-host bin-true 65,437 0 0 0 8 0 1,983 368 dash
17 no-host bin-true 801,910 0 0 0 8 0 1,987 480 osh-cpython
25 no-host bin-true 128,211 0 0 0 16 0 1,982 95 osh-native
33 no-host bin-true 125,115 0 0 0 16 0 1,983 107 osh-native-souffle
2 no-host configure.cpython 1,992,687 0 0 0 32,928 0 14,255 1,306 bash
10 no-host configure.cpython 2,022,195 0 0 0 32,992 0 14,332 1,195 dash
18 no-host configure.cpython 6,106,803 0 0 0 27,512 0 13,075 1,245 osh-cpython
26 no-host configure.cpython 2,016,680 0 0 0 27,520 0 13,156 1,250 osh-native
34 no-host configure.cpython 1,999,556 0 0 0 27,520 0 13,130 1,169 osh-native-souffle
4 no-host configure.ocaml 373,477 0 0 0 5,120 0 1,945 208 bash
12 no-host configure.ocaml 353,881 0 0 0 5,112 0 1,936 182 dash
20 no-host configure.ocaml 615,727 0 0 0 5,112 0 1,852 176 osh-cpython
28 no-host configure.ocaml 376,461 0 0 0 5,120 0 1,932 201 osh-native
36 no-host configure.ocaml 376,414 0 0 0 5,120 0 1,920 191 osh-native-souffle
5 no-host configure.tcc 6,058 0 0 0 104 0 49 8 bash
13 no-host configure.tcc 5,005 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,049 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,523 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,439 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,910,061 0 0 0 42,400 0 18,535 1,259 bash
11 no-host configure.util-linux 2,082,609 0 0 0 42,584 0 17,279 1,577 dash
19 no-host configure.util-linux 5,279,232 4 0 0 39,112 0 16,993 1,430 osh-cpython
27 no-host configure.util-linux 1,821,035 0 0 0 39,120 0 17,026 1,129 osh-native
35 no-host configure.util-linux 1,818,106 1 0 0 39,136 0 17,074 1,267 osh-native-souffle
6 no-host configure.yash 233,455 0 0 0 4,120 0 868 94 bash
14 no-host configure.yash 221,618 0 0 0 3,720 0 872 84 dash
22 no-host configure.yash 369,698 0 0 0 3,728 0 852 110 osh-cpython
30 no-host configure.yash 235,732 0 0 0 3,736 0 851 100 osh-native
38 no-host configure.yash 235,116 0 0 0 3,736 0 854 106 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,966 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 344 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-496c9f81
dash dash-0ebcf347
osh-cpython osh-ca9be5d6
osh-native osh-94300d0a
osh-native-souffle osh-2671a5bf
host label host id
no-host no-host-e4839999