Skip to content

Instantly share code, notes, and snippets.

View luctrudeau's full-sized avatar

Luc Trudeau luctrudeau

View GitHub Profile
@luctrudeau
luctrudeau / loadtest.sh
Created July 6, 2018 14:57
Load Test Script
#!/bin/bash
JOBS=(1 2 4 8 16 32 64)
ENCODE_THREADS=(1 2 4)
NUM_CPU_THREADS=64
for NUM_ENCODE_THREADS in ${ENCODE_THREADS[*]}; do
for NUM_JOBS in ${JOBS[*]}; do
@luctrudeau
luctrudeau / libvpx-power8-27062018.perf
Last active June 27, 2018 21:37
LibVPX Power8/9 27-06-2018
# perf record ./vpxenc --good --cpu-used=2 --codec=vp9 --psnr -v -o test.webm ~/Videos/ducks_take_off_1080p50_60f.y4m
# To display the perf.data header info, please use --header/--header-only options.
#
#
# Total Lost Samples: 0
#
# Samples: 1M of event 'cycles:ppp'
# Event count (approx.): 1615856152685
#
# Overhead Command Shared Object Symbol
@luctrudeau
luctrudeau / libVPXonPower.prof
Created June 14, 2018 18:09
[Profiling] LibVPX on Power Youtube-Like Encoding (14 Jun 2018)
# perf record ./vpxenc --good --cpu-used=2 --codec=vp9 --psnr -v -o /dev/null ~/Videos/ducks_take_off_1080p50_60f.y4m
# perf report --stdio > libVPXonPower.prof
#
# Overhead Command Shared Object Symbol
# ........ ....... ................... .......................................................
#
23.35% vpxenc vpxenc [.] vpx_convolve8_vsx
11.09% vpxenc vpxenc [.] vpx_sad16x16x4d_vsx
6.30% vpxenc vpxenc [.] vpx_convolve8_avg_vsx
5.18% vpxenc vpxenc [.] vpx_convolve8_vert_vsx
@luctrudeau
luctrudeau / gist:0432fad73d3f5017b0687b5f74255dbb
Last active May 28, 2018 13:12
Phoronix Test Conditions for LibVPX
./vpxenc --good --cpu-used=5 --codec=vp9 --psnr -v --threads=4 --tile-columns=4 -o /dev/null ~/Videos/big_buck_bunny_720p_h264.mov --width=1280 --height=720
# To display the perf.data header info, please use --header/--header-only options.
#
#
# Total Lost Samples: 0
#
# Samples: 3M of event 'cycles:ppp'
# Event count (approx.): 3525565972681
#
@luctrudeau
luctrudeau / gist:244a87c31bbf8060a6c1d3a198c2d2c4
Last active September 11, 2023 15:47
Libaom on Power Profiling (--limit=10 --cpu-used=1 ducks_take_off_1080p50_60f.y4m)
# Overhead Command Shared Object Symbol
# ........ ....... ................ .........................................................
#
26.47% aomenc aomenc [.] av1_highbd_jnt_convolve_2d_c
10.76% aomenc aomenc [.] aom_highbd_convolve8_horiz_c
10.44% aomenc aomenc [.] aom_highbd_convolve8_vert_c
10.27% aomenc aomenc [.] av1_highbd_jnt_convolve_y_c
6.68% aomenc aomenc [.] av1_highbd_convolve_2d_sr_c
4.87% aomenc aomenc [.] av1_highbd_jnt_convolve_x_c
3.89% aomenc aomenc [.] av1_idct64_new
@luctrudeau
luctrudeau / gist:89abc4f5d2520dad752c0b5cc7d05b3c
Created May 24, 2018 15:53
Libaom on Power Intra Frame Profiling (--cpu-used=1 ducks_take_off_1080p50_60f.y4m)
# Overhead Command Shared Object Symbol
# ........ ....... ................ .....................................................
#
9.17% aomenc aomenc [.] cdef_filter_fb
7.46% aomenc aomenc [.] av1_idct32_new
7.15% aomenc aomenc [.] av1_idct64_new
5.02% aomenc aomenc [.] av1_highbd_quantize_fp_facade
4.93% aomenc aomenc [.] av1_round_shift_array_c
4.10% aomenc aomenc [.] av1_idct16_new
3.89% aomenc aomenc [.] search_txk_type.isra.61
@luctrudeau
luctrudeau / cfl.ipynb
Last active March 25, 2020 15:01
Snowbird Tram CfL
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luctrudeau
luctrudeau / hicolor_avg.c
Created March 20, 2018 00:52
Hi Color Avg No Rounding
uint16_t hicolor_avg(uint16_t a, uint16_t b) {
const uint16_t s = a ^ b;
return ((s & 0xF7DEU) >> 1) + (a & b);
}
@luctrudeau
luctrudeau / hicolor_avg.c
Created March 13, 2018 02:07
HiColorAverage
uint16_t hicolor_avg(uint16_t a, uint16_t b) {
const uint16_t s = a ^ b;
return ((s & 0xF7DEU) >> 1) + (a & b) + (s & 0x0821U);
}