Skip to content

Instantly share code, notes, and snippets.

@Roguelazer
Last active January 31, 2016 19:49
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 Roguelazer/c4582f266062bea12be8 to your computer and use it in GitHub Desktop.
Save Roguelazer/c4582f266062bea12be8 to your computer and use it in GitHub Desktop.
pyyaml performance
import yaml
import timeit
yaml = yaml
ITERS = 30
SETUP_STMTS = '''
import yaml
import json
import ujson
import msgpack
from yaml import Loader, CLoader, SafeLoader, CSafeLoader
from six import StringIO
s = StringIO()
j = StringIO()
m = StringIO()
with open("input.yaml", "r") as f:
s.write(f.read())
s.seek(0, 0)
d = yaml.safe_load(s)
json.dump(d, j)
msgpack.dump(d, m)
'''
STMTS = (
'yaml.load(s, Loader)',
'yaml.load(s, CLoader)',
'yaml.load(s, SafeLoader)',
'yaml.load(s, CSafeLoader)',
'yaml.load(s)',
'yaml.safe_load(s)',
'json.load(j)',
'ujson.load(j)',
'msgpack.load(m)',
)
for top_stmt in STMTS:
stmt = 's.seek(0, 0) ; j.seek(0, 0) ; m.seek(0, 0) ; assert len(' + top_stmt + ') == 25'
timer = timeit.Timer(
setup=SETUP_STMTS,
stmt=stmt
)
duration = min(timer.repeat(3, ITERS))
print(top_stmt)
print(' {0} iterations in {1:.2}s ({2:.1f}ms/iteration)'.format(
ITERS, duration, (duration * 1000.0 / ITERS)
))
# The first 25 entries from legislators-current.yaml from govtrack.us
- id:
bioguide: B000944
thomas: '00136'
lis: S307
govtrack: 400050
opensecrets: N00003535
votesmart: 27018
fec:
- H2OH13033
- S6OH00163
cspan: 5051
wikipedia: Sherrod Brown
house_history: 9996
ballotpedia: Sherrod Brown
maplight: 168
washington_post: gIQA3O2w9O
icpsr: 29389
wikidata: Q381880
name:
first: Sherrod
last: Brown
official_full: Sherrod Brown
bio:
birthday: '1952-11-09'
gender: M
religion: Lutheran
terms:
- type: rep
start: '1993-01-05'
end: '1995-01-03'
state: OH
district: 13
party: Democrat
- type: rep
start: '1995-01-04'
end: '1997-01-03'
state: OH
district: 13
party: Democrat
- type: rep
start: '1997-01-07'
end: '1999-01-03'
state: OH
district: 13
party: Democrat
- type: rep
start: '1999-01-06'
end: '2001-01-03'
state: OH
district: 13
party: Democrat
- type: rep
start: '2001-01-03'
end: '2003-01-03'
state: OH
district: 13
party: Democrat
- type: rep
start: '2003-01-07'
end: '2005-01-03'
state: OH
district: 13
party: Democrat
url: http://www.house.gov/sherrodbrown
- type: rep
start: '2005-01-04'
end: '2007-01-03'
state: OH
district: 13
party: Democrat
url: http://www.house.gov/sherrodbrown
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: OH
class: 1
party: Democrat
url: http://brown.senate.gov/
address: 713 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-2315
fax: 202-228-6321
contact_form: http://www.brown.senate.gov/contact/
office: 713 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: OH
party: Democrat
class: 1
url: http://www.brown.senate.gov
address: 713 Hart Senate Office Building Washington DC 20510
phone: 202-224-2315
fax: 202-228-6321
contact_form: http://www.brown.senate.gov/contact
office: 713 Hart Senate Office Building
state_rank: senior
rss_url: http://www.brown.senate.gov/rss/feeds/?type=all&
- id:
bioguide: C000127
thomas: '00172'
lis: S275
govtrack: 300018
opensecrets: N00007836
votesmart: 27122
fec:
- S8WA00194
- H2WA01054
cspan: 26137
wikipedia: Maria Cantwell
house_history: 10608
ballotpedia: Maria Cantwell
maplight: 544
washington_post: gIQAZxKkDP
icpsr: 39310
wikidata: Q22250
name:
first: Maria
last: Cantwell
official_full: Maria Cantwell
bio:
birthday: '1958-10-13'
gender: F
religion: Roman Catholic
terms:
- type: rep
start: '1993-01-05'
end: '1995-01-03'
state: WA
district: 1
party: Democrat
- type: sen
start: '2001-01-03'
end: '2007-01-03'
state: WA
class: 1
party: Democrat
url: http://cantwell.senate.gov
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: WA
class: 1
party: Democrat
url: http://cantwell.senate.gov
address: 311 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-3441
fax: 202-228-0514
contact_form: http://www.cantwell.senate.gov/contact/
office: 311 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: WA
party: Democrat
class: 1
url: http://www.cantwell.senate.gov
address: 511 Hart Senate Office Building Washington DC 20510
phone: 202-224-3441
fax: 202-228-0514
contact_form: http://www.cantwell.senate.gov/public/index.cfm/email-maria
office: 511 Hart Senate Office Building
state_rank: junior
rss_url: http://www.cantwell.senate.gov/public/index.cfm/rss/feed
- id:
bioguide: C000141
thomas: '00174'
lis: S308
govtrack: 400064
opensecrets: N00001955
votesmart: 26888
icpsr: 15408
fec:
- H6MD03177
- S6MD03177
cspan: 4004
wikipedia: Ben Cardin
house_history: 10629
ballotpedia: Ben Cardin
maplight: 182
washington_post: gIQAGMu99O
wikidata: Q723295
name:
first: Benjamin
middle: L.
last: Cardin
official_full: Benjamin L. Cardin
bio:
birthday: '1943-10-05'
gender: M
religion: Jewish
terms:
- type: rep
start: '1987-01-06'
end: '1989-01-03'
state: MD
district: 3
party: Democrat
- type: rep
start: '1989-01-03'
end: '1991-01-03'
state: MD
district: 3
party: Democrat
- type: rep
start: '1991-01-03'
end: '1993-01-03'
state: MD
district: 3
party: Democrat
- type: rep
start: '1993-01-05'
end: '1995-01-03'
state: MD
district: 3
party: Democrat
- type: rep
start: '1995-01-04'
end: '1997-01-03'
state: MD
district: 3
party: Democrat
- type: rep
start: '1997-01-07'
end: '1999-01-03'
state: MD
district: 3
party: Democrat
- type: rep
start: '1999-01-06'
end: '2001-01-03'
state: MD
district: 3
party: Democrat
- type: rep
start: '2001-01-03'
end: '2003-01-03'
state: MD
district: 3
party: Democrat
- type: rep
start: '2003-01-07'
end: '2005-01-03'
state: MD
district: 3
party: Democrat
url: http://www.house.gov/cardin
- type: rep
start: '2005-01-04'
end: '2007-01-03'
state: MD
district: 3
party: Democrat
url: http://www.house.gov/cardin
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: MD
class: 1
party: Democrat
url: http://cardin.senate.gov/
address: 509 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-4524
fax: 202-224-1651
contact_form: http://www.cardin.senate.gov/contact/
office: 509 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: MD
party: Democrat
class: 1
url: http://www.cardin.senate.gov
address: 509 Hart Senate Office Building Washington DC 20510
phone: 202-224-4524
fax: 202-224-1651
contact_form: http://www.cardin.senate.gov/contact/
office: 509 Hart Senate Office Building
state_rank: junior
rss_url: http://www.cardin.senate.gov/rss/feeds/?type=all
- id:
bioguide: C000174
thomas: '00179'
lis: S277
govtrack: 300019
opensecrets: N00012508
votesmart: 22421
icpsr: 15015
fec:
- S8DE00079
cspan: 663
wikipedia: Tom Carper
house_history: 10671
ballotpedia: Tom Carper
maplight: 545
washington_post: gIQA3bm69O
wikidata: Q457432
name:
first: Thomas
middle: Richard
last: Carper
official_full: Thomas R. Carper
bio:
birthday: '1947-01-23'
gender: M
religion: Presbyterian
terms:
- type: rep
start: '1983-01-03'
end: '1985-01-03'
state: DE
district: 0
party: Democrat
- type: rep
start: '1985-01-03'
end: '1987-01-03'
state: DE
district: 0
party: Democrat
- type: rep
start: '1987-01-06'
end: '1989-01-03'
state: DE
district: 0
party: Democrat
- type: rep
start: '1989-01-03'
end: '1991-01-03'
state: DE
district: 0
party: Democrat
- type: rep
start: '1991-01-03'
end: '1993-01-03'
state: DE
district: 0
party: Democrat
- type: sen
start: '2001-01-03'
end: '2007-01-03'
state: DE
class: 1
party: Democrat
url: http://carper.senate.gov
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: DE
class: 1
party: Democrat
url: http://carper.senate.gov
address: 513 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-2441
fax: 202-228-2190
contact_form: http://www.carper.senate.gov/contact/
office: 513 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: DE
party: Democrat
class: 1
url: http://www.carper.senate.gov
address: 513 Hart Senate Office Building Washington DC 20510
phone: 202-224-2441
fax: 202-228-2190
contact_form: http://www.carper.senate.gov/public/index.cfm/email-senator-carper
office: 513 Hart Senate Office Building
state_rank: senior
rss_url: http://www.carper.senate.gov/public/index.cfm/rss/feed
- id:
bioguide: C001070
thomas: '01828'
lis: S309
govtrack: 412246
opensecrets: N00027503
votesmart: 2541
fec:
- S6PA00217
cspan: 47036
wikipedia: Bob Casey, Jr.
ballotpedia: Bob Casey, Jr.
maplight: 727
washington_post: gIQABeor9O
icpsr: 40703
wikidata: Q887841
name:
first: Robert
middle: P.
last: Casey
nickname: Bob
suffix: Jr.
official_full: Robert P. Casey, Jr.
bio:
gender: M
birthday: '1960-04-13'
terms:
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: PA
class: 1
party: Democrat
url: http://casey.senate.gov/
address: 393 RUSSELL SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-6324
fax: 202-228-0604
contact_form: http://www.casey.senate.gov/contact/
office: 393 Russell Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: PA
party: Democrat
class: 1
url: http://www.casey.senate.gov
address: 393 Russell Senate Office Building Washington DC 20510
phone: 202-224-6324
fax: 202-228-0604
contact_form: http://www.casey.senate.gov/contact/
office: 393 Russell Senate Office Building
state_rank: senior
rss_url: http://www.casey.senate.gov/rss/feeds/?all
- id:
bioguide: C001071
thomas: '01825'
lis: S310
govtrack: 412248
opensecrets: N00027441
votesmart: 65905
fec:
- S6TN00216
- S4TN00187
cspan: 1021114
wikipedia: Bob Corker
ballotpedia: Bob Corker
maplight: 729
washington_post: gIQADOuy9O
icpsr: 40705
wikidata: Q331719
name:
first: Bob
last: Corker
official_full: Bob Corker
bio:
birthday: '1952-08-24'
gender: M
terms:
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: TN
class: 1
party: Republican
url: http://corker.senate.gov/
address: 185 DIRKSEN SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-3344
fax: 202-228-0566
contact_form: http://www.corker.senate.gov/public/index.cfm?p=ContactMe
office: 185 Dirksen Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: TN
party: Republican
class: 1
url: http://www.corker.senate.gov
address: 425 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-3344
fax: 202-228-0566
contact_form: http://www.corker.senate.gov/public/index.cfm/emailme
office: 425 Dirksen Senate Office Building
state_rank: junior
rss_url: http://www.corker.senate.gov/public/index.cfm/rss/feed
- id:
bioguide: F000062
thomas: '01332'
lis: S221
govtrack: 300043
opensecrets: N00007364
votesmart: 53273
fec:
- S0CA00199
cspan: 13061
wikipedia: Dianne Feinstein
house_history: 13044
ballotpedia: Dianne Feinstein
maplight: 567
washington_post: gIQAnrCyDP
icpsr: 49300
wikidata: Q230733
name:
first: Dianne
last: Feinstein
official_full: Dianne Feinstein
bio:
birthday: '1933-06-22'
gender: F
religion: Jewish
terms:
- type: sen
start: '1992-11-10'
end: '1995-01-03'
state: CA
class: 1
party: Democrat
- type: sen
start: '1995-01-04'
end: '2001-01-03'
state: CA
class: 1
party: Democrat
- type: sen
start: '2001-01-03'
end: '2007-01-03'
state: CA
class: 1
party: Democrat
url: http://feinstein.senate.gov
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: CA
class: 1
party: Democrat
url: http://feinstein.senate.gov
address: 331 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-3841
fax: 202-228-3954
contact_form: http://www.feinstein.senate.gov/public/index.cfm/e-mail-me
office: 331 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: CA
party: Democrat
class: 1
url: http://www.feinstein.senate.gov
address: 331 Hart Senate Office Building Washington DC 20510
phone: 202-224-3841
fax: 202-228-3954
contact_form: https://www.feinstein.senate.gov/public/index.cfm/e-mail-me
office: 331 Hart Senate Office Building
state_rank: senior
rss_url: http://www.feinstein.senate.gov/public/?a=rss.feed
- id:
bioguide: H000338
thomas: '01351'
lis: S118
govtrack: 300052
opensecrets: N00009869
votesmart: 53352
icpsr: 14503
fec:
- S6UT00063
- P00003806
cspan: 189
wikipedia: Orrin Hatch
ballotpedia: Orrin Hatch
maplight: 574
washington_post: gIQAzJiz9O
wikidata: Q381157
name:
first: Orrin
middle: G.
last: Hatch
official_full: Orrin G. Hatch
bio:
birthday: '1934-03-22'
gender: M
religion: Latter Day Saints
terms:
- type: sen
start: '1977-01-04'
end: '1983-01-03'
state: UT
class: 1
party: Republican
- type: sen
start: '1983-01-03'
end: '1989-01-03'
state: UT
class: 1
party: Republican
- type: sen
start: '1989-01-03'
end: '1995-01-03'
state: UT
class: 1
party: Republican
- type: sen
start: '1995-01-04'
end: '2001-01-03'
state: UT
class: 1
party: Republican
- type: sen
start: '2001-01-03'
end: '2007-01-03'
state: UT
class: 1
party: Republican
url: http://hatch.senate.gov/
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: UT
class: 1
party: Republican
url: http://hatch.senate.gov/
address: 104 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-5251
fax: 202-224-6331
contact_form: http://www.hatch.senate.gov/public/index.cfm/contact?p=Email-Orrin
office: 104 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: UT
party: Republican
class: 1
url: http://www.hatch.senate.gov
address: 104 Hart Senate Office Building Washington DC 20510
phone: 202-224-5251
fax: 202-224-6331
contact_form: http://www.hatch.senate.gov/public/index.cfm/contact?p=Email-Orrin
office: 104 Hart Senate Office Building
state_rank: senior
rss_url: http://www.hatch.senate.gov/public/index.cfm/rss/feed
- id:
bioguide: K000367
thomas: '01826'
lis: S311
govtrack: 412242
opensecrets: N00027500
votesmart: 65092
fec:
- S6MN00267
cspan: 83701
wikipedia: Amy Klobuchar
house_history: 16558
ballotpedia: Amy Klobuchar
maplight: 724
washington_post: gIQA5G259O
icpsr: 40700
wikidata: Q22237
name:
first: Amy
middle: Jean
last: Klobuchar
official_full: Amy Klobuchar
bio:
birthday: '1960-05-25'
gender: F
terms:
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: MN
class: 1
party: Democrat
url: http://klobuchar.senate.gov/
address: 302 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-3244
fax: 202-228-2186
contact_form: http://www.klobuchar.senate.gov/emailamy.cfm
office: 302 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: MN
party: Democrat
class: 1
url: http://www.klobuchar.senate.gov
address: 302 Hart Senate Office Building Washington DC 20510
phone: 202-224-3244
fax: 202-228-2186
contact_form: http://www.klobuchar.senate.gov/public/email-amy
office: 302 Hart Senate Office Building
state_rank: senior
- id:
bioguide: M001170
thomas: '01820'
lis: S312
govtrack: 412243
opensecrets: N00027694
votesmart: 2109
fec:
- S6MO00305
- P80005721
cspan: 1012014
wikipedia: Claire McCaskill
house_history: 18811
ballotpedia: Claire McCaskill
maplight: 725
washington_post: gIQAiqnb9O
icpsr: 40701
wikidata: Q22260
name:
first: Claire
last: McCaskill
official_full: Claire McCaskill
bio:
birthday: '1953-07-24'
gender: F
terms:
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: MO
class: 1
party: Democrat
url: http://mccaskill.senate.gov/
address: 506 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-6154
fax: 202-228-6326
contact_form: http://www.mccaskill.senate.gov/?p=contact
office: 506 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: MO
party: Democrat
class: 1
url: http://www.mccaskill.senate.gov
address: 730 Hart Senate Office Building Washington DC 20510
phone: 202-224-6154
fax: 202-228-6326
contact_form: http://www.mccaskill.senate.gov/?p=contact
office: 730 Hart Senate Office Building
state_rank: senior
rss_url: http://mccaskill.senate.gov/rss/?p=news
- id:
bioguide: M000639
thomas: '00791'
lis: S306
govtrack: 400272
opensecrets: N00000699
votesmart: 26961
fec:
- H2NJ13075
- S6NJ00289
cspan: 29608
house_history: 18124
wikipedia: Bob Menendez
ballotpedia: Bob Menendez
maplight: 368
washington_post: gIQAYgYw6O
icpsr: 29373
wikidata: Q888132
name:
first: Robert
last: Menéndez
nickname: Bob
official_full: Robert Menendez
other_names:
- last: Menendez
bio:
birthday: '1954-01-01'
gender: M
religion: Roman Catholic
terms:
- type: rep
start: '1993-01-05'
end: '1995-01-03'
state: NJ
district: 13
party: Democrat
- type: rep
start: '1995-01-04'
end: '1997-01-03'
state: NJ
district: 13
party: Democrat
- type: rep
start: '1997-01-07'
end: '1999-01-03'
state: NJ
district: 13
party: Democrat
- type: rep
start: '1999-01-06'
end: '2001-01-03'
state: NJ
district: 13
party: Democrat
- type: rep
start: '2001-01-03'
end: '2003-01-03'
state: NJ
district: 13
party: Democrat
- type: rep
start: '2003-01-07'
end: '2005-01-03'
state: NJ
district: 13
party: Democrat
url: http://menendez.house.gov
- type: rep
start: '2005-01-04'
end: '2006-01-16'
state: NJ
district: 13
party: Democrat
url: http://menendez.house.gov
- type: sen
start: '2006-01-18'
end: '2007-01-03'
state: NJ
class: 1
party: Democrat
url: http://menendez.senate.gov/
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: NJ
class: 1
party: Democrat
url: http://menendez.senate.gov/
address: 528 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-4744
fax: 202-228-2197
contact_form: http://menendez.senate.gov/contact/
office: 528 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: NJ
party: Democrat
class: 1
url: http://www.menendez.senate.gov
address: 528 Hart Senate Office Building Washington DC 20510
phone: 202-224-4744
fax: 202-228-2197
contact_form: http://www.menendez.senate.gov/contact
office: 528 Hart Senate Office Building
state_rank: senior
rss_url: http://www.menendez.senate.gov/rss/feeds/index.cfm?type=news
- id:
bioguide: N000032
thomas: '00859'
lis: S282
govtrack: 300078
opensecrets: N00009926
votesmart: 1606
icpsr: 14651
fec:
- S8FL00166
cspan: 1931
wikipedia: Bill Nelson
house_history: 18875
ballotpedia: Bill Nelson (Florida)
maplight: 598
washington_post: gIQAlLuy9O
wikidata: Q358437
name:
first: Bill
last: Nelson
official_full: Bill Nelson
bio:
birthday: '1942-09-29'
gender: M
religion: Presbyterian
terms:
- type: rep
start: '1979-01-15'
end: '1981-01-03'
state: FL
district: 9
party: Democrat
- type: rep
start: '1981-01-05'
end: '1983-01-03'
state: FL
district: 9
party: Democrat
- type: rep
start: '1983-01-03'
end: '1985-01-03'
state: FL
district: 11
party: Democrat
- type: rep
start: '1985-01-03'
end: '1987-01-03'
state: FL
district: 11
party: Democrat
- type: rep
start: '1987-01-06'
end: '1989-01-03'
state: FL
district: 11
party: Democrat
- type: rep
start: '1989-01-03'
end: '1991-01-03'
state: FL
district: 11
party: Democrat
- type: sen
start: '2001-01-03'
end: '2007-01-03'
state: FL
class: 1
party: Democrat
url: http://billnelson.senate.gov/
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: FL
class: 1
party: Democrat
url: http://billnelson.senate.gov/
address: 716 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-5274
fax: 202-228-2183
contact_form: http://www.billnelson.senate.gov/contact/index.cfm
office: 716 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: FL
party: Democrat
class: 1
url: http://www.billnelson.senate.gov
address: 716 Hart Senate Office Building Washington DC 20510
phone: 202-224-5274
fax: 202-228-2183
contact_form: http://www.billnelson.senate.gov/contact-bill
office: 716 Hart Senate Office Building
state_rank: senior
- id:
bioguide: S000033
thomas: '01010'
lis: S313
govtrack: 400357
opensecrets: N00000528
votesmart: 27110
fec:
- H8VT01016
- S4VT00033
cspan: 994
wikipedia: Bernie Sanders
ballotpedia: Bernie Sanders
maplight: 450
washington_post: gIQABiDjMP
icpsr: 29147
house_history: 21173
wikidata: Q359442
name:
first: Bernard
last: Sanders
nickname: Bernie
official_full: Bernard Sanders
bio:
birthday: '1941-09-08'
gender: M
religion: Jewish
terms:
- type: rep
start: '1991-01-03'
end: '1993-01-03'
state: VT
district: 0
party: Independent
- type: rep
start: '1993-01-05'
end: '1995-01-03'
state: VT
district: 0
party: Independent
- type: rep
start: '1995-01-04'
end: '1997-01-03'
state: VT
district: 0
party: Independent
- type: rep
start: '1997-01-07'
end: '1999-01-03'
state: VT
district: 0
party: Independent
- type: rep
start: '1999-01-06'
end: '2001-01-03'
state: VT
district: 0
party: Independent
- type: rep
start: '2001-01-03'
end: '2003-01-03'
state: VT
district: 0
party: Independent
- type: rep
start: '2003-01-07'
end: '2005-01-03'
state: VT
district: 0
party: Independent
url: http://bernie.house.gov
- type: rep
start: '2005-01-04'
end: '2007-01-03'
state: VT
district: 0
party: Independent
url: http://bernie.house.gov
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: VT
class: 1
party: Independent
url: http://sanders.senate.gov/
address: 332 DIRKSEN SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-5141
fax: 202-228-0776
contact_form: http://www.sanders.senate.gov/contact/
office: 332 Dirksen Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: VT
party: Independent
caucus: Democrat
class: 1
url: http://www.sanders.senate.gov
address: 332 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-5141
fax: 202-228-0776
contact_form: http://www.sanders.senate.gov/contact/comment
office: 332 Dirksen Senate Office Building
state_rank: junior
rss_url: http://www.sanders.senate.gov/rss/
- id:
bioguide: S000770
thomas: '01531'
lis: S284
govtrack: 300093
opensecrets: N00004118
votesmart: 515
fec:
- S8MI00281
- H6MI08163
cspan: 45451
wikipedia: Debbie Stabenow
ballotpedia: Debbie Stabenow
maplight: 612
washington_post: gIQA5t8DAP
icpsr: 29732
house_history: 22090
wikidata: Q241092
name:
first: Debbie
middle: Ann
last: Stabenow
official_full: Debbie Stabenow
bio:
birthday: '1950-04-29'
gender: F
religion: United Methodist
terms:
- type: rep
start: '1997-01-07'
end: '1999-01-03'
state: MI
district: 8
party: Democrat
- type: rep
start: '1999-01-06'
end: '2001-01-03'
state: MI
district: 8
party: Democrat
- type: sen
start: '2001-01-03'
end: '2007-01-03'
state: MI
class: 1
party: Democrat
url: http://stabenow.senate.gov/
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: MI
class: 1
party: Democrat
url: http://stabenow.senate.gov/
address: 133 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-4822
fax: 202-228-0325
contact_form: http://www.stabenow.senate.gov/?p=contact
office: 133 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: MI
party: Democrat
class: 1
url: http://www.stabenow.senate.gov
address: 731 Hart Senate Office Building Washington DC 20510
phone: 202-224-4822
fax: 202-228-0325
contact_form: http://www.stabenow.senate.gov/?p=contact
office: 731 Hart Senate Office Building
state_rank: senior
rss_url: http://stabenow.senate.gov/rss/?p=news
- id:
bioguide: T000464
thomas: '01829'
lis: S314
govtrack: 412244
opensecrets: N00027605
votesmart: 20928
fec:
- S6MT00162
cspan: 1020176
wikipedia: Jon Tester
ballotpedia: Jon Tester
maplight: 726
washington_post: gIQAw67AAP
icpsr: 40702
wikidata: Q529351
name:
first: Jon
last: Tester
official_full: Jon Tester
bio:
birthday: '1956-08-21'
gender: M
terms:
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: MT
class: 1
party: Democrat
url: http://tester.senate.gov/
address: 724 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-2644
fax: 202-224-8594
contact_form: http://www.tester.senate.gov/Contact/index.cfm
office: 724 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: MT
party: Democrat
class: 1
url: http://www.tester.senate.gov
address: 311 Hart Senate Office Building Washington DC 20510
phone: 202-224-2644
fax: 202-224-8594
contact_form: http://www.tester.senate.gov/?p=email_senator
office: 311 Hart Senate Office Building
state_rank: senior
rss_url: http://www.tester.senate.gov/rss/?p=hot_topic
- id:
bioguide: W000802
thomas: '01823'
lis: S316
govtrack: 412247
opensecrets: N00027533
votesmart: 2572
fec:
- S6RI00221
cspan: 92235
wikipedia: Sheldon Whitehouse
ballotpedia: Sheldon Whitehouse
maplight: 728
washington_post: gIQA7KHw9O
icpsr: 40704
wikidata: Q652066
name:
first: Sheldon
last: Whitehouse
official_full: Sheldon Whitehouse
bio:
gender: M
birthday: '1955-10-20'
terms:
- type: sen
start: '2007-01-04'
end: '2013-01-03'
state: RI
class: 1
party: Democrat
url: http://whitehouse.senate.gov/
address: 717 HART SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-2921
fax: 202-228-6362
contact_form: http://www.whitehouse.senate.gov/contact/
office: 717 Hart Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: RI
party: Democrat
class: 1
url: http://www.whitehouse.senate.gov
address: 530 Hart Senate Office Building Washington DC 20510
phone: 202-224-2921
fax: 202-228-6362
contact_form: http://www.whitehouse.senate.gov/contact
office: 530 Hart Senate Office Building
state_rank: junior
rss_url: http://www.whitehouse.senate.gov/rss/feeds/?type=all&cachebuster=1
- id:
bioguide: B001261
thomas: '01881'
lis: S317
govtrack: 412251
opensecrets: N00006236
votesmart: 52662
fec:
- S6WY00068
cspan: 1024777
wikipedia: John Barrasso
ballotpedia: John Barrasso
maplight: 732
washington_post: gIQASOzBAP
icpsr: 40707
wikidata: Q720521
name:
first: John
middle: A.
last: Barrasso
official_full: John Barrasso
bio:
birthday: '1952-07-21'
gender: M
terms:
- type: sen
start: '2007-06-25'
end: '2013-01-03'
state: WY
class: 1
party: Republican
url: http://barrasso.senate.gov
address: 307 DIRKSEN SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-6441
fax: 202-224-1724
contact_form: http://www.barrasso.senate.gov/public/index.cfm?FuseAction=ContactUs.ContactForm
office: 307 Dirksen Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: WY
party: Republican
class: 1
url: http://www.barrasso.senate.gov
address: 307 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-6441
fax: 202-224-1724
contact_form: http://www.barrasso.senate.gov/public/index.cfm?FuseAction=ContactUs.ContactForm
office: 307 Dirksen Senate Office Building
state_rank: junior
rss_url: http://www.barrasso.senate.gov/public/index.cfm?FuseAction=Rss.Feed
- id:
bioguide: W000437
thomas: '01226'
lis: S318
govtrack: 400432
opensecrets: N00003280
votesmart: 21926
fec:
- H4MS01078
- S8MS00196
cspan: 18203
wikipedia: Roger Wicker
ballotpedia: Roger Wicker
maplight: 517
washington_post: gIQAC9ZCAP
icpsr: 29534
house_history: 23734
wikidata: Q390491
name:
first: Roger
middle: F.
last: Wicker
official_full: Roger F. Wicker
bio:
birthday: '1951-07-05'
gender: M
religion: Southern Baptist
terms:
- type: rep
start: '1995-01-04'
end: '1997-01-03'
state: MS
district: 1
party: Republican
- type: rep
start: '1997-01-07'
end: '1999-01-03'
state: MS
district: 1
party: Republican
- type: rep
start: '1999-01-06'
end: '2001-01-03'
state: MS
district: 1
party: Republican
- type: rep
start: '2001-01-03'
end: '2003-01-03'
state: MS
district: 1
party: Republican
- type: rep
start: '2003-01-07'
end: '2005-01-03'
state: MS
district: 1
party: Republican
url: http://www.house.gov/wicker
- type: rep
start: '2005-01-04'
end: '2007-01-03'
state: MS
district: 1
party: Republican
url: http://www.house.gov/wicker
- type: rep
start: '2007-01-04'
end: '2007-12-31'
state: MS
district: 1
party: Republican
url: http://www.house.gov/wicker
- type: sen
start: '2007-12-31'
end: '2013-01-03'
state: MS
class: 1
party: Republican
url: http://wicker.senate.gov
address: 555 DIRKSEN SENATE OFFICE BUILDING WASHINGTON DC 20510
phone: 202-224-6253
fax: 202-228-0378
contact_form: http://www.wicker.senate.gov/public/index.cfm?FuseAction=Contact.EMailSenatorWicker
office: 555 Dirksen Senate Office Building
- type: sen
start: '2013-01-03'
end: '2019-01-03'
state: MS
party: Republican
class: 1
url: http://www.wicker.senate.gov
address: 555 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-6253
fax: 202-228-0378
contact_form: http://www.wicker.senate.gov/public/index.cfm/contact
office: 555 Dirksen Senate Office Building
state_rank: junior
- id:
bioguide: A000360
thomas: '01695'
lis: S289
govtrack: 300002
opensecrets: N00009888
votesmart: 15691
fec:
- S2TN00058
- P60003225
cspan: 5
wikipedia: Lamar Alexander
ballotpedia: Lamar Alexander
maplight: 530
washington_post: gIQAzZQL9O
icpsr: 40304
wikidata: Q419976
name:
first: Lamar
last: Alexander
official_full: Lamar Alexander
bio:
birthday: '1940-07-03'
gender: M
religion: Presbyterian
terms:
- type: sen
start: '2003-01-07'
end: '2009-01-03'
state: TN
class: 2
party: Republican
url: http://alexander.senate.gov/
- type: sen
start: '2009-01-06'
end: '2015-01-03'
state: TN
class: 2
party: Republican
url: http://www.alexander.senate.gov
address: 455 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-4944
fax: 202-228-3398
contact_form: http://www.alexander.senate.gov/public/index.cfm?p=Email
office: 455 Dirksen Senate Office Building
state_rank: senior
rss_url: http://www.alexander.senate.gov/public/?a=rss.feed
- type: sen
start: '2015-01-06'
end: '2021-01-03'
state: TN
class: 2
party: Republican
url: http://www.alexander.senate.gov
address: 455 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-4944
fax: 202-228-3398
contact_form: http://www.alexander.senate.gov/public/index.cfm?p=Email
office: 455 Dirksen Senate Office Building
state_rank: senior
rss_url: http://www.alexander.senate.gov/public/?a=rss.feed
- id:
bioguide: C000567
thomas: '00213'
lis: S136
govtrack: 300023
opensecrets: N00003328
votesmart: 53312
icpsr: 14009
fec:
- S8MS00055
cspan: 1200
wikipedia: Thad Cochran
house_history: 11160
ballotpedia: Thad Cochran
maplight: 549
washington_post: gIQAJk599O
wikidata: Q723896
name:
first: Thad
last: Cochran
official_full: Thad Cochran
bio:
birthday: '1937-12-07'
gender: M
religion: Baptist
terms:
- type: rep
start: '1973-01-03'
end: '1975-01-03'
state: MS
district: 4
party: Republican
- type: rep
start: '1975-01-14'
end: '1977-01-03'
state: MS
district: 4
party: Republican
- type: rep
start: '1977-01-04'
end: '1979-01-03'
state: MS
district: 4
party: Republican
- type: sen
start: '1979-01-15'
end: '1985-01-03'
state: MS
class: 2
party: Republican
- type: sen
start: '1985-01-03'
end: '1991-01-03'
state: MS
class: 2
party: Republican
- type: sen
start: '1991-01-03'
end: '1997-01-03'
state: MS
class: 2
party: Republican
- type: sen
start: '1997-01-07'
end: '2003-01-03'
state: MS
class: 2
party: Republican
- type: sen
start: '2003-01-07'
end: '2009-01-03'
state: MS
class: 2
party: Republican
url: http://cochran.senate.gov
- type: sen
start: '2009-01-06'
end: '2015-01-03'
state: MS
class: 2
party: Republican
url: http://www.cochran.senate.gov
address: 113 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-5054
fax: 202-224-9450
contact_form: http://www.cochran.senate.gov/public/index.cfm/email-me
office: 113 Dirksen Senate Office Building
state_rank: senior
rss_url: http://www.cochran.senate.gov/public/index.cfm/rss/feed
- type: sen
start: '2015-01-06'
end: '2021-01-03'
state: MS
class: 2
party: Republican
url: http://www.cochran.senate.gov
address: 113 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-5054
fax: 202-224-9450
contact_form: http://www.cochran.senate.gov/public/index.cfm/email-me
office: 113 Dirksen Senate Office Building
state_rank: senior
rss_url: http://www.cochran.senate.gov/public/index.cfm/rss/feed
- id:
bioguide: C001035
thomas: '01541'
lis: S252
govtrack: 300025
opensecrets: N00000491
votesmart: 379
fec:
- S6ME00159
cspan: 45738
wikipedia: Susan Collins
house_history: 11742
ballotpedia: Susan Collins
maplight: 551
washington_post: gIQAPvDu9O
icpsr: 49703
wikidata: Q22279
name:
first: Susan
middle: M.
last: Collins
official_full: Susan M. Collins
bio:
birthday: '1952-12-07'
gender: F
religion: Catholic
terms:
- type: sen
start: '1997-01-07'
end: '2003-01-03'
state: ME
class: 2
party: Republican
- type: sen
start: '2003-01-07'
end: '2009-01-03'
state: ME
class: 2
party: Republican
url: http://collins.senate.gov
- type: sen
start: '2009-01-06'
end: '2015-01-03'
state: ME
class: 2
party: Republican
url: http://www.collins.senate.gov
address: 413 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-2523
fax: 202-224-2693
contact_form: http://www.collins.senate.gov/public/index.cfm/email
office: 413 Dirksen Senate Office Building
state_rank: senior
rss_url: http://www.collins.senate.gov/public/?a=rss.feed
- type: sen
start: '2015-01-06'
end: '2021-01-03'
state: ME
class: 2
party: Republican
url: http://www.collins.senate.gov
address: 413 Dirksen Senate Office Building Washington DC 20510
phone: 202-224-2523
fax: 202-224-2693
contact_form: http://www.collins.senate.gov/public/index.cfm/email
office: 413 Dirksen Senate Office Building
state_rank: senior
rss_url: http://www.collins.senate.gov/public/?a=rss.feed
- id:
bioguide: C001056
thomas: '01692'
lis: S287
govtrack: 300027
opensecrets: N00024852
votesmart: 15375
fec:
- S2TX00106
cspan: 93131
wikipedia: John Cornyn
ballotpedia: John Cornyn
maplight: 553
washington_post: gIQAy80L9O
icpsr: 40305
wikidata: Q719568
name:
first: John
last: Cornyn
official_full: John Cornyn
bio:
birthday: '1952-02-02'
gender: M
religion: Church of Christ
leadership_roles:
- title: Minority Whip
chamber: senate
start: '2013-01-03'
end: '2015-01-03'
- title: Majority Whip
chamber: senate
start: '2015-01-03'
terms:
- type: sen
start: '2002-01-01'
end: '2003-01-03'
state: TX
class: 2
party: Republican
- type: sen
start: '2003-01-07'
end: '2009-01-03'
state: TX
class: 2
party: Republican
url: http://cornyn.senate.gov/
- type: sen
start: '2009-01-06'
end: '2015-01-03'
state: TX
class: 2
party: Republican
url: http://www.cornyn.senate.gov
address: 517 Hart Senate Office Building Washington DC 20510
phone: 202-224-2934
fax: 202-228-2856
contact_form: http://www.cornyn.senate.gov/public/index.cfm?p=ContactForm
office: 517 Hart Senate Office Building
state_rank: senior
rss_url: http://www.cornyn.senate.gov/public/?a=rss.feed
- type: sen
start: '2015-01-06'
end: '2021-01-03'
state: TX
class: 2
party: Republican
url: http://www.cornyn.senate.gov
address: 517 Hart Senate Office Building Washington DC 20510
phone: 202-224-2934
fax: 202-228-2856
contact_form: http://www.cornyn.senate.gov/public/index.cfm?p=ContactForm
office: 517 Hart Senate Office Building
state_rank: senior
rss_url: http://www.cornyn.senate.gov/public/?a=rss.feed
- id:
bioguide: D000563
thomas: '00326'
lis: S253
govtrack: 300038
opensecrets: N00004981
votesmart: 26847
icpsr: 15021
fec:
- S6IL00151
- H2IL20026
cspan: 6741
wikipedia: Dick Durbin
house_history: 12527
ballotpedia: Dick Durbin
maplight: 563
washington_post: gIQArl8V9O
wikidata: Q434804
name:
first: Richard
middle: J.
last: Durbin
official_full: Richard J. Durbin
bio:
birthday: '1944-11-21'
gender: M
religion: Roman Catholic
leadership_roles:
- title: Minority Whip
chamber: senate
start: '2005-01-04'
end: '2007-01-03'
- title: Majority Whip
chamber: senate
start: '2007-01-04'
end: '2009-01-06'
- title: Majority Whip
chamber: senate
start: '2009-01-06'
end: '2011-01-05'
- title: Majority Whip
chamber: senate
start: '2011-01-05'
end: '2013-01-03'
- title: Majority Whip
chamber: senate
start: '2013-01-03'
end: '2015-01-03'
- title: Minority Whip
chamber: senate
start: '2015-01-03'
terms:
- type: rep
start: '1983-01-03'
end: '1985-01-03'
state: IL
district: 20
party: Democrat
- type: rep
start: '1985-01-03'
end: '1987-01-03'
state: IL
district: 20
party: Democrat
- type: rep
start: '1987-01-06'
end: '1989-01-03'
state: IL
district: 20
party: Democrat
- type: rep
start: '1989-01-03'
end: '1991-01-03'
state: IL
district: 20
party: Democrat
- type: rep
start: '1991-01-03'
end: '1993-01-03'
state: IL
district: 20
party: Democrat
- type: rep
start: '1993-01-05'
end: '1995-01-03'
state: IL
district: 20
party: Democrat
- type: rep
start: '1995-01-04'
end: '1997-01-03'
state: IL
district: 20
party: Democrat
- type: sen
start: '1997-01-07'
end: '2003-01-03'
state: IL
class: 2
party: Democrat
- type: sen
start: '2003-01-07'
end: '2009-01-03'
state: IL
class: 2
party: Democrat
url: http://durbin.senate.gov
- type: sen
start: '2009-01-06'
end: '2015-01-03'
state: IL
class: 2
party: Democrat
url: http://www.durbin.senate.gov
address: 711 Hart Senate Office Building Washington DC 20510
phone: 202-224-2152
fax: 202-228-0400
contact_form: http://www.durbin.senate.gov/public/index.cfm/contact
office: 711 Hart Senate Office Building
state_rank: senior
rss_url: http://durbin.senate.gov/public/index.cfm/rss/feed
- type: sen
start: '2015-01-06'
end: '2021-01-03'
state: IL
class: 2
party: Democrat
url: http://www.durbin.senate.gov
address: 711 Hart Senate Office Building Washington DC 20510
phone: 202-224-2152
fax: 202-228-0400
contact_form: http://www.durbin.senate.gov/public/index.cfm/contact
office: 711 Hart Senate Office Building
state_rank: senior
rss_url: http://durbin.senate.gov/public/index.cfm/rss/feed
- id:
bioguide: E000285
thomas: '01542'
lis: S254
govtrack: 300041
opensecrets: N00006249
votesmart: 558
fec:
- S6WY00126
cspan: 45824
wikipedia: Mike Enzi
ballotpedia: Mike Enzi
maplight: 565
washington_post: gIQAAWfCAP
icpsr: 49706
wikidata: Q432431
name:
first: Michael
middle: B.
last: Enzi
official_full: Michael B. Enzi
bio:
birthday: '1944-02-01'
gender: M
religion: Presbyterian
terms:
- type: sen
start: '1997-01-07'
end: '2003-01-03'
state: WY
class: 2
party: Republican
- type: sen
start: '2003-01-07'
end: '2009-01-03'
state: WY
class: 2
party: Republican
url: http://enzi.senate.gov
- type: sen
start: '2009-01-06'
end: '2015-01-03'
state: WY
class: 2
party: Republican
url: http://www.enzi.senate.gov
address: 379A Russell Senate Office Building Washington DC 20510
phone: 202-224-3424
fax: 202-228-0359
contact_form: http://www.enzi.senate.gov/public/index.cfm/contact?p=e-mail-senator-enzi
office: 379a Russell Senate Office Building
state_rank: senior
rss_url: http://www.enzi.senate.gov/public/index.cfm/rss/feed
- type: sen
start: '2015-01-06'
end: '2021-01-03'
state: WY
class: 2
party: Republican
url: http://www.enzi.senate.gov
address: 379A Russell Senate Office Building Washington DC 20510
phone: 202-224-3424
fax: 202-228-0359
contact_form: http://www.enzi.senate.gov/public/index.cfm/contact?p=e-mail-senator-enzi
office: 379a Russell Senate Office Building
state_rank: senior
rss_url: http://www.enzi.senate.gov/public/index.cfm/rss/feed
- id:
bioguide: G000359
thomas: '00452'
lis: S293
govtrack: 300047
opensecrets: N00009975
votesmart: 21992
fec:
- S0SC00149
- H4SC03087
cspan: 36782
wikipedia: Lindsey Graham
house_history: 14015
ballotpedia: Lindsey Graham
maplight: 569
washington_post: gIQAEdOu9O
icpsr: 29566
wikidata: Q22212
name:
first: Lindsey
middle: O.
last: Graham
official_full: Lindsey Graham
bio:
birthday: '1955-07-09'
gender: M
religion: Southern Baptist
terms:
- type: rep
start: '1995-01-04'
end: '1997-01-03'
state: SC
district: 3
party: Republican
- type: rep
start: '1997-01-07'
end: '1999-01-03'
state: SC
district: 3
party: Republican
- type: rep
start: '1999-01-06'
end: '2001-01-03'
state: SC
district: 3
party: Republican
- type: rep
start: '2001-01-03'
end: '2003-01-03'
state: SC
district: 3
party: Republican
- type: sen
start: '2003-01-07'
end: '2009-01-03'
state: SC
class: 2
party: Republican
url: http://lgraham.senate.gov/
- type: sen
start: '2009-01-06'
end: '2015-01-03'
state: SC
class: 2
party: Republican
url: http://www.lgraham.senate.gov
address: 290 Russell Senate Office Building Washington DC 20510
phone: 202-224-5972
fax: 202-224-3808
contact_form: http://www.lgraham.senate.gov/public/index.cfm?FuseAction=Contact.EmailSenatorGraham
office: 290 Russell Senate Office Building
state_rank: senior
rss_url: http://www.lgraham.senate.gov/public/index.cfm?FuseAction=Rss.Feed
- type: sen
start: '2015-01-06'
end: '2021-01-03'
state: SC
class: 2
party: Republican
url: http://www.lgraham.senate.gov
address: 290 Russell Senate Office Building Washington DC 20510
phone: 202-224-5972
fax: 202-224-3808
contact_form: http://www.lgraham.senate.gov/public/index.cfm?FuseAction=Contact.EmailSenatorGraham
office: 290 Russell Senate Office Building
state_rank: senior
rss_url: http://www.lgraham.senate.gov/public/index.cfm?FuseAction=Rss.Feed
yaml.load(s, Loader)
30 iterations in 8.3s (276.0ms/iteration)
yaml.load(s, CLoader)
30 iterations in 0.77s (25.6ms/iteration)
yaml.load(s, SafeLoader)
30 iterations in 8.5s (282.6ms/iteration)
yaml.load(s, CSafeLoader)
30 iterations in 0.84s (27.9ms/iteration)
yaml.load(s)
30 iterations in 9.1s (303.1ms/iteration)
yaml.safe_load(s)
30 iterations in 9.1s (302.1ms/iteration)
json.load(j)
30 iterations in 0.043s (1.4ms/iteration)
ujson.load(j)
30 iterations in 0.012s (0.4ms/iteration)
msgpack.load(m)
30 iterations in 0.0069s (0.2ms/iteration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment