Skip to content

Instantly share code, notes, and snippets.

@barrbrain
Last active September 24, 2022 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barrbrain/efef510d5d36e0726fcd01fc17fce800 to your computer and use it in GitHub Desktop.
Save barrbrain/efef510d5d36e0726fcd01fc17fce800 to your computer and use it in GitHub Desktop.
rav1e 0.6 efficiency
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt
v5_1 = np.array([
[18.2344,0.8817],
[7.6955,0.8927],
[3.4063,0.9219],
[2.1284,0.9350],
[1.6182,0.9551],
[1.4241,0.9646],
[1.0000,1.0000],
[1.0036,1.0013],
[1.0031,1.0056],
[0.7193,1.3452],
[0.3498,1.5710]
])
v6 = np.array([
[19.1387,0.8369],
[6.9775,0.8448],
[3.1845,0.8696],
[1.7334,0.8990],
[1.2711,0.9187],
[1.2164,0.9284],
[0.8085,0.9668],
[0.8302,0.9682],
[0.8106,0.9721],
[0.5656,1.3116],
[0.2997,1.5070],
])
fig, ax = plt.subplots(figsize=(16,9))
ax.plot(*(1/v5_1).T,'o-', label='v0.5.1')
ax.plot(*(1/v6).T, 'o-', label='p20220913')
for i in range(11):
ax.annotate(i, (1/v5_1)[i], (1/v5_1)[i]+.005)
ax.annotate(i, (1/v6)[i], (1/v6)[i]+.005)
ax.set_xlabel('Faster ⟶\nRelative speed')
ax.set_ylabel('Relative compression\nSmaller ⟶')
plt.legend()
plt.show();
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment